from starlette.requests import Request from starlette.responses import * from royalnet.constellation import * from royalnet.utils import * from royalnet.backpack.tables import * from ..tables import * from royalnet.constellation.api import * class ApiWikiListStar(ApiData): path = "/api/wiki/list/v1" async def api(self, data: ApiData) -> dict: pages: typing.List[WikiPage] = await asyncify(data.session.query(self.alchemy.get(WikiPage)).all) return [page.json_list() for page in pages]