2026-01-20 10:13:51 +08:00
|
|
|
'''
|
|
|
|
|
网页路由
|
|
|
|
|
'''
|
2026-01-02 17:12:24 +08:00
|
|
|
from flask import Blueprint, jsonify
|
2026-02-08 20:55:19 +08:00
|
|
|
from ..utils import index
|
2026-01-02 17:12:24 +08:00
|
|
|
|
|
|
|
|
page_bp = Blueprint("page", __name__, "/")
|
|
|
|
|
|
|
|
|
|
@page_bp.route("/")
|
2026-02-08 20:55:19 +08:00
|
|
|
def index_page():
|
|
|
|
|
return jsonify({"code": "200", "message": "Service normal"})
|
|
|
|
|
|
|
|
|
|
@page_bp.route("/index")
|
|
|
|
|
def description():
|
|
|
|
|
return jsonify(index.readIndex())
|