mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 18:36:58 +08:00
升级后端并开源UI
This commit is contained in:
14
autoapp.py
Normal file
14
autoapp.py
Normal 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
|
Reference in New Issue
Block a user