Compare commits

...

3 commits

Author SHA1 Message Date
9ebea74b45 Merge pull request 'dev' (#3) from dev into main
Reviewed-on: #3
2025-02-19 06:31:24 +00:00
Sanjib Kumar Sen
411e48f10c api root 2025-02-19 12:29:38 +06:00
Sanjib Kumar Sen
f91ab7749a no expose for coolify 2025-02-19 12:23:19 +06:00
3 changed files with 6 additions and 9 deletions

View file

@ -3,8 +3,8 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
ports: # ports:
- "${SERVER_PORT}:${SERVER_PORT}" # - "${SERVER_PORT}:${SERVER_PORT}"
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy

View file

@ -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);

View file

@ -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);