24 lines
595 B
Python
24 lines
595 B
Python
from blueprints import auth_blueprint, user_blueprint, default_blueprint
|
|
from di_container import Container
|
|
from configs import Config
|
|
from flask import Flask
|
|
|
|
|
|
def createApp() -> Flask:
|
|
container = Container()
|
|
|
|
app = Flask(__name__)
|
|
app.container = container
|
|
|
|
# Register Blueprints
|
|
app.register_blueprint(default_blueprint)
|
|
# app.register_blueprint(auth_blueprint, url_prefix="/api")
|
|
# app.register_blueprint(user_blueprint, url_prefix="/api")
|
|
|
|
return app
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = createApp()
|
|
app.run(debug=Config.DEBUG)
|