refactor(api):调整后端逻辑-上

This commit is contained in:
zhengxinonly
2021-07-24 03:06:19 +08:00
parent 0ca75c81d4
commit b8e0173a9c
22 changed files with 342 additions and 323 deletions
+11
View File
@@ -0,0 +1,11 @@
from flask import render_template
from applications.view import index_bp
from applications.common.utils.rights import authorize
# 图片管理
@index_bp.get('/file')
@authorize("admin:file:main", log=True)
def file_index():
return render_template('file/photo.html')