Working version
This commit is contained in:
15
app/controllers/__init__.py
Normal file
15
app/controllers/__init__.py
Normal file
@ -0,0 +1,15 @@
|
||||
from litestar import Router
|
||||
|
||||
from app.domain.machine import Machine
|
||||
|
||||
from . import machines
|
||||
|
||||
__all__ = ["create_router"]
|
||||
|
||||
|
||||
def create_router() -> Router:
|
||||
return Router(
|
||||
path="/v1",
|
||||
route_handlers=[machines.MachineController,],
|
||||
signature_namespace={"Machine": Machine,},
|
||||
)
|
||||
Reference in New Issue
Block a user