From c20bf7a178958b0913431d8efc17be5a5ec3b8b4 Mon Sep 17 00:00:00 2001 From: smfahim25 Date: Wed, 19 Mar 2025 11:23:47 +0600 Subject: [PATCH] remove prefix --- src/api/index.ts | 10 ---------- src/app.ts | 12 ------------ 2 files changed, 22 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 6b91186..6973475 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -9,10 +9,6 @@ export const api = new Elysia({ prefix: "" }) console.log("Root endpoint accessed"); return "Hello from PlanPostAI Canvas API"; }) - .get("/test", () => { - console.log("Test endpoint accessed"); - return "Test endpoint works!"; - }) .use(authRoute) .use(projectRoutes) .use(uploadRoutes) @@ -25,9 +21,3 @@ export const api = new Elysia({ prefix: "" }) } return "API Error Occurred"; }); - -// Log all registered routes for debugging -console.log("API Routes registered:"); -api.routes.forEach((route) => { - console.log(`${route.method} ${api.prefix}${route.path}`); -}); diff --git a/src/app.ts b/src/app.ts index 4d5d3b5..977dab7 100644 --- a/src/app.ts +++ b/src/app.ts @@ -50,18 +50,6 @@ const app = new Elysia() }, }) ) - .get("/", () => "PlanPostAI Canvas Server is running", { - detail: { - tags: ["Default"], - summary: "Server root", - }, - }) - .get("/test-swagger", () => "Test route with Swagger docs", { - detail: { - tags: ["Default"], - summary: "Test Swagger", - }, - }) .use(api) .listen(ENV.SERVER_PORT);