fix(api): mount /v1 router via .route, not basePath
This commit is contained in:
@@ -52,7 +52,7 @@ const appRouter = new Hono()
|
||||
.route("/auth", authRouter)
|
||||
.route("/billing", billingRouter)
|
||||
.route("/my", myRouter)
|
||||
.route("/", v1Router)
|
||||
.route("/v1", v1Router)
|
||||
.route("/organizations", organizationRouter)
|
||||
.route("/public", publicRouter)
|
||||
.route("/storage", storageRouter)
|
||||
|
||||
@@ -59,7 +59,6 @@ const historyQuerySchema = z.object({
|
||||
});
|
||||
|
||||
export const v1Router = new Hono<Env>()
|
||||
.basePath("/v1")
|
||||
.use(enforceApiKey)
|
||||
|
||||
// POST /v1/messages — send to a topic
|
||||
|
||||
Reference in New Issue
Block a user