feature: 权限列表-01

This commit is contained in:
zhengxinonly
2023-10-03 01:04:15 +08:00
parent 20b611ac29
commit f95ae54fd5
6 changed files with 188 additions and 3 deletions
+2
View File
@@ -1,7 +1,9 @@
from flask import Flask
from .index import index_bp
from .views import views_bp
def register_views(app: Flask):
app.register_blueprint(index_bp)
app.register_blueprint(views_bp)
+8
View File
@@ -0,0 +1,8 @@
from flask import Blueprint, render_template
views_bp = Blueprint("views", __name__, url_prefix="/views")
@views_bp.get("/rights")
def rights_view():
return render_template("views/rights/index.html")