Instantiates a new AstroAdapter.
Prefix URL segment (e.g. '/api').
OptionalroutesRef: RegisteredRoute[]Internal reference sharing existing routes list.
OptionalmiddlewaresRef: ApiMiddleware[]Internal reference sharing existing middlewares.
Registers a modular sub-endpoint namespace.
The endpoints builder method.
The route mapping context prefix.
Additional router options.
Appends a strict ApiMiddleware to the router execution flow.
The middleware callback function.
Instantiates and returns a sub-router mapping to a nested prefix.
The nested sub-path segment prefix.
A new ServerAdapter adapter instance bound to the prefix.
Registers a handler for DELETE requests.
The relative routing path.
Route handler(s) and optional middlewares.
Registers a handler for DELETE requests.
The relative routing path.
Route handler(s) and optional middlewares.
Registers a handler for GET requests.
The relative routing path.
Route handler(s) and optional middlewares.
Registers a handler for GET requests.
The relative routing path.
Route handler(s) and optional middlewares.
Returns the underlying router or runtime handler container.
AstroAdapter instance itself.
Returns an Astro APIRoute handler that resolves dynamic catch-all route matching.
The compiled Astro APIRoute handler.
Registers a handler for PATCH requests.
The relative routing path.
Route handler(s) and optional middlewares.
Registers a handler for PATCH requests.
The relative routing path.
Route handler(s) and optional middlewares.
Registers a handler for POST requests.
The relative routing path.
Route handler(s) and optional middlewares.
Registers a handler for POST requests.
The relative routing path.
Route handler(s) and optional middlewares.
Registers a handler for PUT requests.
The relative routing path.
Route handler(s) and optional middlewares.
Registers a handler for PUT requests.
The relative routing path.
Route handler(s) and optional middlewares.
Stub serving static files (handled natively by Astro).
Public filesystem directory.
OptionalapiPrefix: stringEndpoint segment prefix.
Stub starting the server environment (handled natively by Astro).
Target port.
Optionalcallback: () => voidOptional completion routine.
Appends middleware routines to the router execution flow.
The middleware callback function.
StaticwrapStatic helper to wrap a single Quatrain ApiHandler into a native Astro APIRoute.
The Quatrain API action handler.
The wrapped Astro APIRoute execution callback.
Api Server adapter wrapping the Astro API environment. Maps Quatrain's standardized
ServerAdapterinterfaces to web standards (Request/Response) used by Astro.