blob: f0fd426e5ad0a7aa4dc67b478ef039839ed27776 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from apiflask import APIBlueprint, Schema
from apiflask.fields import Integer, String, Field
from .data import bp as databp
from .fx import bp as fxbp
from .stats import bp as statsbp
from .sysinfo import bp as sysbp
bp = APIBlueprint('apiv1', __name__, url_prefix="/api")
bp.register_blueprint(statsbp)
bp.register_blueprint(databp)
bp.register_blueprint(sysbp)
bp.register_blueprint(fxbp)
class Response(Schema):
code = Integer()
msg = String()
data = Field()
|