mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2026-10-15 13:55:10 +00:00
feat(api): add server route for workspaces
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user