瀏覽代碼

app register blueprint

weichen 3 年之前
父節點
當前提交
74fdcb8a2a
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      models/__init__.py

+ 5 - 2
models/__init__.py

@@ -11,9 +11,12 @@ def create_app():
 
     from models.contents.routes import contents_app
     from models.manages.routes import manages_app
-    
-    app.register_blueprint(contents_app)
+    from models.store_locations.routes import store_locations_app
+    from models.statics.routes import statics_app
 
+    app.register_blueprint(contents_app)
     app.register_blueprint(manages_app)
+    app.register_blueprint(store_locations_app)
+    app.register_blueprint(statics_app)
 
     return app