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
+10
View File
@@ -0,0 +1,10 @@
from flask import render_template
from applications.common.utils.rights import authorize
from applications.view import index_bp
@index_bp.get('/dept')
@authorize("admin:dept:main", log=True)
def dept_index():
return render_template('department/main.html')