Esempio n. 1
0
from src.app import app
from src.comics.view import comics
from src.character.view import characters
from src.creators.view import creators

app.register_blueprint(comics)
app.register_blueprint(characters)
app.register_blueprint(creators)

if __name__ == '__main__':
    app.run()
Esempio n. 2
0
File: routes.py Progetto: MD1010/FAB
def register_routes():
    app.register_blueprint(users, url_prefix="/api/users")
    app.register_blueprint(ea_accounts, url_prefix="/api/accounts")
    app.register_blueprint(auth, url_prefix="/api/auth")
    app.register_blueprint(web_app, url_prefix="/api/web-app")
    app.register_blueprint(entities, url_prefix="/api/entities")
Esempio n. 3
0
from src.app import app
from src.app.views.login import login_bp
from src.app.views.home import home_bp
from src.app.views.register import register_bp
from src.app.views.profile import profile_bp
from src.app.views.post import post_bp
from src.app.views.sidebar import sidebar_bp
from src.app.api import upload_file_router

app.register_blueprint(home_bp)
app.register_blueprint(login_bp)
app.register_blueprint(register_bp)
app.register_blueprint(profile_bp)
app.register_blueprint(post_bp)
app.register_blueprint(sidebar_bp)
app.register_blueprint(upload_file_router)


if __name__ == "__main__":
    app.run(debug=False, host="0.0.0.0")
from src.app import app
from src.models.retailers.views import retailers_blueprint
app.register_blueprint(retailers_blueprint, url_prefix='/retailers')
Esempio n. 5
0
import os

from src.app import app
from src.auth import auth_bp
from src.views import blueprint

app.register_blueprint(auth_bp)
app.register_blueprint(blueprint)
if __name__ == "__main__":
    port = int(os.environ.get('PORT', 5000))
    app.run(host='localhost', port=port)
from src.app import app
from src.models.users.views import user_blueprint
app.register_blueprint(user_blueprint, url_prefix='/user')
from src.models.dot.views import admin_blueprint
app.register_blueprint(admin_blueprint, url_prefix='/admin')

from src.models.api.api import api_blueprint
app.register_blueprint(api_blueprint, url_prefix='/api')