__init__.py 989 Bytes
# coding=utf-8
#author:        4N
#createtime:    2021/2/23
#email:         nheweijun@sina.com

from flask import Blueprint
from app.util import BlueprintApi
from flasgger import swag_from
from . import index
from . import release
from . import get_app_name
class Template(BlueprintApi):

    bp = Blueprint("Index", __name__, url_prefix="/")

    @staticmethod
    @bp.route('/', methods=['GET'])
    @swag_from(index.Api.api_doc)
    def api_index():
        """
        Index接口
        """
        return index.Api().result

    @staticmethod
    @bp.route('/release', methods=['GET'])
    @swag_from(release.Api.api_doc)
    def release():
        """
        release接口
        """
        return release.Api().result

    @staticmethod
    @bp.route('/GetAppName', methods=['GET'])
    @swag_from(get_app_name.Api.api_doc)
    def get_app_name():
        """
        GetAppName接口
        """
        return get_app_name.Api().result