mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-29 18:59:57 +00:00
Preparing repo for merge of frontend with backend
This commit is contained in:
6
app.py
6
app.py
@@ -1,7 +1,11 @@
|
||||
from application import app
|
||||
from application.api.views import api_blueprint
|
||||
from application.auth.views import auth_blueprint
|
||||
from application.dashboard.views import dash_blueprint
|
||||
|
||||
app.register_blueprint(api_blueprint)
|
||||
app.register_blueprint(api_blueprint, url_prefix="/api")
|
||||
app.register_blueprint(auth_blueprint, url_prefix="/auth")
|
||||
app.register_blueprint(dash_blueprint, url_prefix="/dash")
|
||||
|
||||
|
||||
# Default app route
|
||||
|
||||
@@ -9,7 +9,7 @@ api_blueprint = Blueprint("api", __name__, template_folder="templates")
|
||||
|
||||
|
||||
# API to process vehicle
|
||||
@api_blueprint.route("/api", methods=["POST"])
|
||||
@api_blueprint.route("/", methods=["POST"])
|
||||
def data():
|
||||
data = request.data
|
||||
np = asyncio.run(process_image(image=data))
|
||||
|
||||
0
application/auth/templates/.gitkeep
Normal file
0
application/auth/templates/.gitkeep
Normal file
3
application/auth/views.py
Normal file
3
application/auth/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from flask import Blueprint
|
||||
|
||||
auth_blueprint = Blueprint("auth", __name__, template_folder="templates")
|
||||
0
application/dashboard/templates/.gitkeep
Normal file
0
application/dashboard/templates/.gitkeep
Normal file
3
application/dashboard/views.py
Normal file
3
application/dashboard/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from flask import Blueprint
|
||||
|
||||
dash_blueprint = Blueprint("dash", __name__, template_folder="templates")
|
||||
@@ -1,5 +1,5 @@
|
||||
port = 2222
|
||||
server = "192.168.137.1"
|
||||
data_path = "api"
|
||||
data_path = "api/"
|
||||
ssid = "stef"
|
||||
password = "test123123"
|
||||
|
||||
@@ -64,3 +64,4 @@ ultralytics-thop==2.0.14
|
||||
urllib3==2.4.0
|
||||
Werkzeug==3.1.3
|
||||
win32_setctime==1.2.0
|
||||
Authlib==1.5.2
|
||||
Reference in New Issue
Block a user