feat: 增加description.py,修复中文问题
This commit is contained in:
+7
-2
@@ -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())
|
||||
Reference in New Issue
Block a user