feat: 补充url_prefix属性
This commit is contained in:
@@ -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
@@ -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():
|
||||
|
||||
@@ -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
@@ -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():
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user