Files
2023-09-14 17:44:02 +02:00

21 lines
424 B
Python

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,
},
)