From 98a3399a8ca35f63ae0416a8032c33ed3d5a5d26 Mon Sep 17 00:00:00 2001 From: Mark Cotton Date: Thu, 5 Oct 2023 21:16:10 -0500 Subject: [PATCH] moving routes comment into README --- README.md | 36 ++++++++++++++++++++++++++++++++++++ app.py | 17 ----------------- 2 files changed, 36 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 2509e68..3b7a04e 100644 --- a/README.md +++ b/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//preview | +| camera__preivew_image | GET | /camera//preview_image | +| camera_video_player | GET | /camera//video_player/ | +| camera_list_of_videos | GET | /camera//videos | +| cameras | GET | /cameras | +| landing | GET | /landing | +| login_callback | GET | /login_callback | +| logout | GET | /logout | +| static | GET | /static/ | +| switch_account | GET | /switch_account | + + + diff --git a/app.py b/app.py index d8d6d73..dc67638 100644 --- a/app.py +++ b/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//preview -# camera__preivew_image GET /camera//preview_image -# camera_video_player GET /camera//video_player/ -# camera_list_of_videos GET /camera//videos -# cameras GET /cameras -# landing GET /landing -# login_callback GET /login_callback -# logout GET /logout -# static GET /static/ -# switch_account GET /switch_account - def login_required(f): @wraps(f)