mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
18 lines
278 B
Python
18 lines
278 B
Python
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)
|