feat(api): add server route for workspaces

This commit is contained in:
ngc2207 2025-02-03 12:12:20 +08:00
parent 579025e62d
commit e96f111a39

View File

@ -1,6 +1,7 @@
import { Hono } from "hono"; import { Hono } from "hono";
import { handle } from "hono/vercel"; import { handle } from "hono/vercel";
import auth from "@/features/auth/server/route"; import auth from "@/features/auth/server/route";
import workspaces from "@/features/workspaces/server/route";
const app = new Hono().basePath("/api"); const app = new Hono().basePath("/api");
@ -9,7 +10,7 @@ app.get("/health", (c) => {
}); });
// eslint-disable-next-line @typescript-eslint/no-unused-vars // 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 GET = handle(app);
export const POST = handle(app); export const POST = handle(app);