[add]: eco models

This commit is contained in:
VivianDee
2025-07-30 09:19:43 +01:00
parent cb0d9938c6
commit bcb4ae183d
10 changed files with 198 additions and 1 deletions
+9 -1
View File
@@ -1,3 +1,4 @@
from re import U
from flask import Flask
from flask_mail import Mail
import os
@@ -40,11 +41,18 @@ def create_app():
# Register blueprints
app.register_blueprint(api)
app.register_blueprint(eco)
app.register_blueprint(eco, url_prefix="/eco")
swagger_ui_blueprint = get_swaggerui_blueprint(SWAGGER_URL, API_URL)
app.register_blueprint(swagger_ui_blueprint, url_prefix=SWAGGER_URL)
# Second UI (ECO)
eco_docs = "/eco" + SWAGGER_URL
eco_api = "/eco" + API_URL
swagger_ui_eco = get_swaggerui_blueprint(eco_docs, eco_api)
swagger_ui_eco.name = 'swagger_ui_eco' # Rename blueprint
app.register_blueprint(swagger_ui_eco, url_prefix=eco_docs)
# Error Handlers
register_error_handlers(app)