Compare commits

..

No commits in common. "9ebea74b45941e5d9460d7878eeeab3c5d6e6f7a" and "e11a051730a79eca7b7a12f5a1b195ab11c07951" have entirely different histories.

3 changed files with 9 additions and 6 deletions

View file

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

View file

@ -7,9 +7,7 @@ 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);

View file

@ -23,7 +23,7 @@ const app = new Elysia({
credentials: true,
}))
.use(swagger({
path: "/api/docs",
path: "/docs",
documentation: {
info: {
title: "Canvas API",
@ -49,6 +49,11 @@ const app = new Elysia({
console.error(error)
});
app.get("/", () => {
return "Hello from PlanPostAI Canvas API";
});
// all routes here
app.use(api);