create_app type hint
This commit is contained in:
parent
cf66a0d0d0
commit
fa282b96e0
@ -9,7 +9,7 @@ from app.glob import get_config, get_manager
|
||||
frontend_dir = '../frontend/dist'
|
||||
|
||||
|
||||
def create_app():
|
||||
def create_app() -> Flask:
|
||||
app = Flask(__name__, static_url_path='/', static_folder=frontend_dir, template_folder=frontend_dir)
|
||||
api = Api(app, '/api/v1/')
|
||||
add_api_resources(api)
|
||||
|
Loading…
Reference in New Issue
Block a user