You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
470 B
18 lines
470 B
import quart.flask_patch
|
|
from quart import Quart
|
|
|
|
|
|
def create_app():
|
|
app = Quart(__name__)
|
|
app.config.from_envvar('FLASK_SECRETS', 'config.py')
|
|
|
|
@app.before_serving
|
|
async def startup():
|
|
from totrader.routes import meta, tasks, api
|
|
from totrader import filters
|
|
app.register_blueprint(meta.bp)
|
|
app.register_blueprint(tasks.bp)
|
|
app.register_blueprint(api.bp)
|
|
app.register_blueprint(filters.bp)
|
|
|
|
return app |