feature: 初始化 jwt 插件
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from flask import Flask
|
||||
|
||||
from configs import config
|
||||
from pear_admin.apis import register_apis
|
||||
from pear_admin.extensions import register_extensions
|
||||
from pear_admin.orms import UserORM
|
||||
from pear_admin.views import register_views
|
||||
@@ -12,6 +13,7 @@ def create_app(config_name="dev"):
|
||||
app.config.from_object(config[config_name])
|
||||
|
||||
register_extensions(app)
|
||||
register_apis(app)
|
||||
|
||||
register_views(app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user