fix: path
All checks were successful
ci / docker (api) (push) Successful in 2m16s
ci / docker (web) (push) Successful in 4m47s

This commit is contained in:
Tine Jozelj 2023-09-11 15:04:00 +02:00
parent 864a87f6f5
commit 274378c858
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
4 changed files with 11 additions and 3 deletions

View file

@ -7,5 +7,5 @@ RUN bun install
ADD src src ADD src src
CMD bun src/index.js CMD bun src/index.ts
EXPOSE 3003 EXPOSE 3003

Binary file not shown.

View file

@ -6,6 +6,7 @@
"dev": "bun run --watch src/index.ts" "dev": "bun run --watch src/index.ts"
}, },
"dependencies": { "dependencies": {
"@elysiajs/swagger": "mentos1386/elysia-swagger#fix-prefix-swagger",
"elysia": "latest" "elysia": "latest"
}, },
"devDependencies": { "devDependencies": {
@ -14,4 +15,3 @@
}, },
"module": "src/index.js" "module": "src/index.js"
} }

View file

@ -1,6 +1,14 @@
import { Elysia } from "elysia"; 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); app.get("/", (ctx) => ctx.headers);