flask-demo-api/flask_demo_api/main.py

14 lines
238 B
Python
Raw Normal View History

2024-04-13 04:41:30 +03:00
from flask import Flask
2024-04-15 02:16:07 +03:00
from routers.key import key_bp
2024-04-13 04:41:30 +03:00
def app_factory() -> Flask:
app = Flask(__name__)
2024-04-15 02:16:07 +03:00
app.register_blueprint(key_bp)
2024-04-13 04:41:30 +03:00
return app
2024-04-15 02:16:07 +03:00
if __name__ == "__main__":
app = app_factory()
app.run(debug=True)