moving routes comment into README

database
Mark Cotton 2023-10-05 21:16:10 -05:00
parent 7cd2a5c80d
commit 98a3399a8c
2 changed files with 36 additions and 17 deletions

View File

@ -49,3 +49,39 @@ You can create your application and setup credentials at: [https://developerv3.e
## Ideas on how to use ##
I encluded an example Flask server in `app.py`. You can run it locally with `python flask run -p 3333 --debug`
## EagleEyev3 Version ##
Using EagleEyev3 version *0.0.24*
## Routes ##
### Command ###
`$ flask routes -s rule`
### Output ###
| Endpoint | Methods | Rule |
| --------------------- | ------- | -------------------------------------------- |
| index | GET | / |
| accounts | GET | /accounts |
| camera_live_preivew | GET | /camera/<esn>/preview |
| camera__preivew_image | GET | /camera/<esn>/preview_image |
| camera_video_player | GET | /camera/<esn>/video_player/<start_timestamp> |
| camera_list_of_videos | GET | /camera/<esn>/videos |
| cameras | GET | /cameras |
| landing | GET | /landing |
| login_callback | GET | /login_callback |
| logout | GET | /logout |
| static | GET | /static/<path:filename> |
| switch_account | GET | /switch_account |

17
app.py
View File

@ -75,23 +75,6 @@ with app.app_context():
# $ flask routes -s rule
# INFO:root:Using EagleEyev3 version 0.0.17
# Endpoint Methods Rule
# --------------------- ------- --------------------------------------------
# index GET /
# accounts GET /accounts
# camera_live_preivew GET /camera/<esn>/preview
# camera__preivew_image GET /camera/<esn>/preview_image
# camera_video_player GET /camera/<esn>/video_player/<start_timestamp>
# camera_list_of_videos GET /camera/<esn>/videos
# cameras GET /cameras
# landing GET /landing
# login_callback GET /login_callback
# logout GET /logout
# static GET /static/<path:filename>
# switch_account GET /switch_account
def login_required(f):
@wraps(f)