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