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('admin/file/photo.html') # 图片管理 @index_bp.get('/file/photo/add') @authorize("admin:file:main", log=True) def file_photo_add(): return render_template('admin/file/photo_add.html')