moving routes comment into README
parent
7cd2a5c80d
commit
98a3399a8c
36
README.md
36
README.md
|
@ -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
17
app.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue