13 lines
258 B
Python
13 lines
258 B
Python
from flask import Flask
|
|
from firefly.routes import routes
|
|
from firefly.config import DEBUG
|
|
|
|
def create_app():
|
|
app = Flask(__name__)
|
|
app.register_blueprint(routes)
|
|
return app
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=DEBUG) |