[add]: eco models
This commit is contained in:
+9
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user