finish api basic setup

This commit is contained in:
Gardient
2021-09-19 22:13:10 +03:00
parent 0b189e3b65
commit 404dbb6870
10 changed files with 307 additions and 0 deletions

10
run.py Normal file
View File

@@ -0,0 +1,10 @@
from flask.helpers import get_debug_flag
from api import create_app
from api.settings import DevConfig, ProdConfig
CONFIG = DevConfig if get_debug_flag() else ProdConfig
app = create_app(CONFIG)
if __name__ == "__main__":
app.run()