Controller
Summary
A controller object that mirrors a route map with matching action handlers.
Controllers let you store a subtree of route handlers in one object while preserving the params and request-context contract for each nested action.
Signature
type Controller<routes, context> =
| ControllerWithoutMiddleware<routes, context>
| ControllerWithMiddleware<routes, context, readonly AnyMiddleware[]>;