ewoksserver.app.routes.backend.get_routes#
- ewoksserver.app.routes.backend.get_routes(tag, routers, suffix='')[source]#
Generate routes with versioned paths for all strict and major versions. In addition add a route with non-versioned path for the latest version.
- Parameters:
tag (
str
)routers (
Dict
[Tuple
[int
,int
,int
],Union
[APIRouter
,Callable
[[],Callable
[[MutableMapping
[str
,Any
],Callable
[[],Awaitable
[MutableMapping
[str
,Any
]]],Callable
[[MutableMapping
[str
,Any
]],Awaitable
[None
]]],Awaitable
[None
]]]]])suffix (
str
)
- Return type:
Dict
[Tuple
[int
],Route
]