diff --git a/api/Dockerfile b/api/Dockerfile index 32cf9e7..ad410cf 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -7,5 +7,5 @@ RUN bun install ADD src src -CMD bun src/index.js +CMD bun src/index.ts EXPOSE 3003 diff --git a/api/bun.lockb b/api/bun.lockb index 27bcfd1..046c91e 100755 Binary files a/api/bun.lockb and b/api/bun.lockb differ diff --git a/api/package.json b/api/package.json index 935f61c..70e01cf 100644 --- a/api/package.json +++ b/api/package.json @@ -6,6 +6,7 @@ "dev": "bun run --watch src/index.ts" }, "dependencies": { + "@elysiajs/swagger": "mentos1386/elysia-swagger#fix-prefix-swagger", "elysia": "latest" }, "devDependencies": { @@ -14,4 +15,3 @@ }, "module": "src/index.js" } - diff --git a/api/src/index.ts b/api/src/index.ts index b0b0434..674df10 100644 --- a/api/src/index.ts +++ b/api/src/index.ts @@ -1,6 +1,14 @@ import { Elysia } from "elysia"; +//import { swagger } from "@elysiajs/swagger"; -const app = new Elysia({ prefix: "/api" }); +const app = new Elysia({ + prefix: "/api", +}); +//.use( +// swagger({ +// documentation: { info: { title: "tjo.space API" } }, +// }) +//); app.get("/", (ctx) => ctx.headers);