mirror of
https://github.com/veops/cmdb.git
synced 2025-08-06 22:09:52 +08:00
15 lines
242 B
Python
15 lines
242 B
Python
# -*- 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
|