Files

15 lines
325 B
Python
Raw Permalink Normal View History

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