You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
875 B
22 lines
875 B
# app.py
|
|
from main import app
|
|
from controller.index import index as index_blueprint
|
|
from controller.user import user as user_blueprint
|
|
from controller.article import article as article_blueprint
|
|
from controller.favorite import favorite as favorite_blueprint
|
|
from controller.comment import comment as comment_blueprint
|
|
from controller.admin import admin as admin_blueprint
|
|
from controller.ucenter import ucenter as ucenter_blueprint
|
|
from controller.ueditor import ueditor as ueditor_blueprint
|
|
#
|
|
app.register_blueprint(index_blueprint)
|
|
app.register_blueprint(user_blueprint)
|
|
app.register_blueprint(article_blueprint)
|
|
app.register_blueprint(favorite_blueprint)
|
|
app.register_blueprint(comment_blueprint)
|
|
app.register_blueprint(admin_blueprint)
|
|
app.register_blueprint(ucenter_blueprint)
|
|
app.register_blueprint(ueditor_blueprint)
|
|
|
|
if __name__ == '__main__':
|
|
app.run(debug=True) |