__init__.py
989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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