feat: 初步完成了查询卡片的路由

This commit is contained in:
2026-01-03 17:19:39 +08:00
parent 69c7213fdf
commit b8b7c6e889
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
+1 -1
View File
@@ -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}")