remove prefix
This commit is contained in:
parent
d58e78bb0e
commit
c20bf7a178
2 changed files with 0 additions and 22 deletions
|
|
@ -9,10 +9,6 @@ export const api = new Elysia({ prefix: "" })
|
||||||
console.log("Root endpoint accessed");
|
console.log("Root endpoint accessed");
|
||||||
return "Hello from PlanPostAI Canvas API";
|
return "Hello from PlanPostAI Canvas API";
|
||||||
})
|
})
|
||||||
.get("/test", () => {
|
|
||||||
console.log("Test endpoint accessed");
|
|
||||||
return "Test endpoint works!";
|
|
||||||
})
|
|
||||||
.use(authRoute)
|
.use(authRoute)
|
||||||
.use(projectRoutes)
|
.use(projectRoutes)
|
||||||
.use(uploadRoutes)
|
.use(uploadRoutes)
|
||||||
|
|
@ -25,9 +21,3 @@ export const api = new Elysia({ prefix: "" })
|
||||||
}
|
}
|
||||||
return "API Error Occurred";
|
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}`);
|
|
||||||
});
|
|
||||||
|
|
|
||||||
12
src/app.ts
12
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)
|
.use(api)
|
||||||
.listen(ENV.SERVER_PORT);
|
.listen(ENV.SERVER_PORT);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue