add server code

This commit is contained in:
geoffrey45
2021-12-14 09:02:02 +03:00
parent 951d58623b
commit 803c813786
14 changed files with 1680 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
from flask import Flask
from flask_cors import CORS
def create_app():
app = Flask(__name__)
CORS(app)
from . import api
app.register_blueprint(api.bp, url_prefix='/')
return app
if __name__ == '__main__':
app = create_app()
app.run(debug=True)