feat: 补充url_prefix属性

This commit is contained in:
2026-02-12 17:15:03 +08:00
parent b20040abc1
commit 379b31fb5b
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
from flask import Blueprint, send_file, jsonify
from ..utils import assets
asset_bp = Blueprint("asset", __name__, "/asset")
asset_bp = Blueprint("asset", __name__, url_prefix="/asset")
@asset_bp.route("/list")
def asset_list():
+1 -1
View File
@@ -4,7 +4,7 @@
from flask import Blueprint, jsonify
from ..utils import cards
card_bp = Blueprint("card", __name__, "/card")
card_bp = Blueprint("card", __name__, url_prefix="/card")
@card_bp.route("/list")
def card_list():
+1 -1
View File
@@ -4,7 +4,7 @@
from flask import Blueprint, jsonify
from ..utils import matters
matter_bp = Blueprint("matter", __name__, "/matter")
matter_bp = Blueprint("matter", __name__, url_prefix="/matter")
@matter_bp.route("/list")
def matter_list():
+1 -1
View File
@@ -4,7 +4,7 @@
from flask import Blueprint, jsonify
from ..utils import index
page_bp = Blueprint("page", __name__, "/")
page_bp = Blueprint("page", __name__, url_prefix="/")
@page_bp.route("/")
def index_page():
+1 -1
View File
@@ -4,7 +4,7 @@
from flask import Blueprint, jsonify
from ..utils import reactions
reaction_bp = Blueprint("reaction", __name__, "/reaction")
reaction_bp = Blueprint("reaction", __name__, url_prefix="/reaction")
@reaction_bp.route("list")
def reaction_list():