Preparing repo for merge of frontend with backend

This commit is contained in:
2025-04-25 18:11:27 +02:00
parent 2611ab39fb
commit 4c2b4bf5d0
8 changed files with 14 additions and 3 deletions

6
app.py
View File

@@ -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

View File

@@ -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))

View File

View File

@@ -0,0 +1,3 @@
from flask import Blueprint
auth_blueprint = Blueprint("auth", __name__, template_folder="templates")

View File

View File

@@ -0,0 +1,3 @@
from flask import Blueprint
dash_blueprint = Blueprint("dash", __name__, template_folder="templates")

View File

@@ -1,5 +1,5 @@
port = 2222
server = "192.168.137.1"
data_path = "api"
data_path = "api/"
ssid = "stef"
password = "test123123"

View File

@@ -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