feat: 增加description.py,修复中文问题

This commit is contained in:
2026-02-08 20:55:19 +08:00
parent 8455dc7924
commit 6b7af1301f
9 changed files with 38 additions and 15 deletions
+7 -2
View File
@@ -2,9 +2,14 @@
网页路由
'''
from flask import Blueprint, jsonify
from ..utils import index
page_bp = Blueprint("page", __name__, "/")
@page_bp.route("/")
def index():
return jsonify({"code": "200", "message": "Service normal"})
def index_page():
return jsonify({"code": "200", "message": "Service normal"})
@page_bp.route("/index")
def description():
return jsonify(index.readIndex())