From aaed65ee1382a088b76241f4d1b92e0c1e6d4593 Mon Sep 17 00:00:00 2001 From: Douglas DUTEIL Date: Thu, 18 Jan 2024 10:31:30 +0100 Subject: [PATCH] feat(proxy): ensure to proxy before the legacy guard route --- src/bootstrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap.ts b/src/bootstrap.ts index ede95671..8b83c392 100644 --- a/src/bootstrap.ts +++ b/src/bootstrap.ts @@ -29,11 +29,11 @@ const app = new Hono() .get("/healthz", ({ text }) => text(`healthz check passed`)) .get("/livez", ({ text }) => text(`livez check passed`)) .route("/readyz", readyz) + .route("", proxy) .route("", asserts_router) .route("", auth_router) .route("", welcome_router) .route("", legacy) - .route("", proxy) .notFound(async ({ html, var: { nonce } }) => { return html(NotFound({ nonce }), 404); })