dev #3
2 changed files with 4 additions and 7 deletions
|
|
@ -7,7 +7,9 @@ import { downloadRoute } from "./downloadCount/download.count.route";
|
||||||
export const api = new Elysia({
|
export const api = new Elysia({
|
||||||
prefix: "/api",
|
prefix: "/api",
|
||||||
});
|
});
|
||||||
|
api.get("/", () => {
|
||||||
|
return "Hello from PlanPostAI Canvas API";
|
||||||
|
});
|
||||||
api.use(authRoute);
|
api.use(authRoute);
|
||||||
api.use(projectRoutes);
|
api.use(projectRoutes);
|
||||||
api.use(uploadRoutes);
|
api.use(uploadRoutes);
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ const app = new Elysia({
|
||||||
credentials: true,
|
credentials: true,
|
||||||
}))
|
}))
|
||||||
.use(swagger({
|
.use(swagger({
|
||||||
path: "/docs",
|
path: "/api/docs",
|
||||||
documentation: {
|
documentation: {
|
||||||
info: {
|
info: {
|
||||||
title: "Canvas API",
|
title: "Canvas API",
|
||||||
|
|
@ -49,11 +49,6 @@ const app = new Elysia({
|
||||||
console.error(error)
|
console.error(error)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
app.get("/", () => {
|
|
||||||
return "Hello from PlanPostAI Canvas API";
|
|
||||||
});
|
|
||||||
|
|
||||||
// all routes here
|
// all routes here
|
||||||
app.use(api);
|
app.use(api);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue