From e96f111a3912209a17d4a018e675eac99922d04c Mon Sep 17 00:00:00 2001 From: ngc2207 Date: Mon, 3 Feb 2025 12:12:20 +0800 Subject: [PATCH] feat(api): add server route for workspaces --- src/app/api/[[...route]]/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/api/[[...route]]/route.ts b/src/app/api/[[...route]]/route.ts index c77ed7d..600d2b0 100644 --- a/src/app/api/[[...route]]/route.ts +++ b/src/app/api/[[...route]]/route.ts @@ -1,6 +1,7 @@ import { Hono } from "hono"; import { handle } from "hono/vercel"; import auth from "@/features/auth/server/route"; +import workspaces from "@/features/workspaces/server/route"; const app = new Hono().basePath("/api"); @@ -9,7 +10,7 @@ app.get("/health", (c) => { }); // eslint-disable-next-line @typescript-eslint/no-unused-vars -const routes = app.route("/auth", auth); +const routes = app.route("/auth", auth).route("/workspaces", workspaces); export const GET = handle(app); export const POST = handle(app);