diff --git a/docker-compose.yml b/docker-compose.yml index 84dd998..954a020 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,8 +3,8 @@ services: build: context: . dockerfile: Dockerfile - ports: - - "${SERVER_PORT}:${SERVER_PORT}" + # ports: + # - "${SERVER_PORT}:${SERVER_PORT}" depends_on: db: condition: service_healthy diff --git a/src/api/index.ts b/src/api/index.ts index 95b3a11..467471b 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -7,7 +7,9 @@ import { downloadRoute } from "./downloadCount/download.count.route"; export const api = new Elysia({ prefix: "/api", }); - +api.get("/", () => { + return "Hello from PlanPostAI Canvas API"; +}); api.use(authRoute); api.use(projectRoutes); api.use(uploadRoutes); diff --git a/src/app.ts b/src/app.ts index 251e3fe..fda8f87 100644 --- a/src/app.ts +++ b/src/app.ts @@ -23,7 +23,7 @@ const app = new Elysia({ credentials: true, })) .use(swagger({ - path: "/docs", + path: "/api/docs", documentation: { info: { title: "Canvas API", @@ -49,11 +49,6 @@ const app = new Elysia({ console.error(error) }); - -app.get("/", () => { - return "Hello from PlanPostAI Canvas API"; -}); - // all routes here app.use(api);