feat: 初步完成了查询卡片的路由
This commit is contained in:
@@ -8,5 +8,8 @@ def create_app(config_class='config.DevelopmentConfig'):
|
||||
# 注册蓝图
|
||||
from app.routes.pages import page_bp
|
||||
app.register_blueprint(page_bp)
|
||||
|
||||
from app.routes.cards import card_bp
|
||||
app.register_blueprint(card_bp)
|
||||
|
||||
return app
|
||||
@@ -8,4 +8,4 @@ def readCardList() -> dict:
|
||||
return result
|
||||
|
||||
def readCard(id: str):
|
||||
return readCardList().get(id, -1)
|
||||
return readCardList().get(id, f"No Card {id}")
|
||||
Reference in New Issue
Block a user