升级后端并开源UI

This commit is contained in:
pycook
2019-08-28 20:34:10 +08:00
parent 41ca61c826
commit 1628c1b2c2
115 changed files with 5244 additions and 4543 deletions

14
autoapp.py Normal file
View File

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
"""Create an application instance."""
from flask import g
from flask_login import current_user
from api.app import create_app
app = create_app()
@app.before_request
def before_request():
g.user = current_user