15 lines
325 B
Python
15 lines
325 B
Python
'''
|
|
网页路由
|
|
'''
|
|
from flask import Blueprint, jsonify
|
|
from ..utils import index
|
|
|
|
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()) |