Basic users and cities api

This commit is contained in:
Eden Kirin
2023-09-14 17:44:02 +02:00
parent c70169004d
commit 4875837d4e
20 changed files with 815 additions and 0 deletions

View File

@ -0,0 +1,20 @@
from litestar import Router
__all__ = ["create_router"]
from app.controllers.city import CityController
from app.controllers.user import UserController
from app.domain.city import City
def create_router() -> Router:
return Router(
path="/v1",
route_handlers=[
CityController,
UserController,
],
signature_namespace={
"City": City,
},
)