mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2025-07-04 09:31:13 +00:00
feat(api): add server route for workspaces
This commit is contained in:
parent
579025e62d
commit
e96f111a39
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user