fix(api): mount /v1 router via .route, not basePath
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

This commit is contained in:
Alejandro Gutiérrez
2026-05-02 02:22:08 +01:00
parent 56d7cc1c48
commit 8b5708a604
2 changed files with 1 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ const appRouter = new Hono()
.route("/auth", authRouter) .route("/auth", authRouter)
.route("/billing", billingRouter) .route("/billing", billingRouter)
.route("/my", myRouter) .route("/my", myRouter)
.route("/", v1Router) .route("/v1", v1Router)
.route("/organizations", organizationRouter) .route("/organizations", organizationRouter)
.route("/public", publicRouter) .route("/public", publicRouter)
.route("/storage", storageRouter) .route("/storage", storageRouter)

View File

@@ -59,7 +59,6 @@ const historyQuerySchema = z.object({
}); });
export const v1Router = new Hono<Env>() export const v1Router = new Hono<Env>()
.basePath("/v1")
.use(enforceApiKey) .use(enforceApiKey)
// POST /v1/messages — send to a topic // POST /v1/messages — send to a topic