File size: 368 Bytes
01e655b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from modules.data import styles_mgr
from modules.api import utils as api_utils
from modules.api.Api import APIManager


async def list_styles():
    return {"message": "ok", "data": styles_mgr.list_items()}


async def create_style():
    # TODO
    pass


def setup(app: APIManager):
    app.get("/v1/styles/list", response_model=api_utils.BaseResponse)(list_styles)