feat: 添加了读取列表的路由

This commit is contained in:
2026-01-21 16:37:36 +08:00
parent 86202b853d
commit e6584a712f
4 changed files with 23 additions and 3 deletions
+4
View File
@@ -6,6 +6,10 @@ from ..utils import matters
matter_bp = Blueprint("matter", __name__, "/matter")
@matter_bp.route("/list")
def matter_list():
return matters.readMatterList()
@matter_bp.route("/id/<id>")
def search_matter(id):
return matters.readMatter(id)