The constructor function of the Model or Service.
The method name or CrudKind to register the middleware for.
The middleware function to register.
Registers middleware for a specific namespace (Model or Service)
Runs before request validation and method middleware, and after services are initialized.
The middleware function to register.
Registers middleware than runs on every valid route.
Runs after a route is matched, but before services are initialized.
The middleware function to register.
Runs the Cloesce Router, handling dependency injection, routing, validation, hydration, and method dispatch.
The incoming Request object.
The Wrangler environment bindings.
A Response object representing the result of the request.
StaticinitInitializes the Cloesce runtime with the given CIDL AST and constructor registry.
the generated Cloesce IDL AST
the generated constructor registry
A CloesceApp instance
Registers middleware for a specific method on a namespace
Runs after namespace middleware and request validation.