feat(router): expose HEAD and OPTIONS decorators

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-08-02 20:40:02 -05:00
1 parent 8e38fffd77
commit 63be0ef8f7
6 files changed
+30 -5

No files matched your search

+1 -1
View File
@@ -413,7 +413,7 @@ function resolveTransformer(
if (route.transport !== 'buffer' || (route.method !== 'GET' && route.method !== 'POST')) {
throw new Error(
`@Html on ${route.method} ${pattern} is not allowed — @Html only supports buffered GET/POST routes (not SSE/WS/PUT/PATCH/DELETE)`,
`@Html on ${route.method} ${pattern} is not allowed — @Html only supports buffered GET/POST routes (not SSE/WS/HEAD/PUT/PATCH/DELETE/OPTIONS)`,
);
}