fix: path
This commit is contained in:
parent
864a87f6f5
commit
274378c858
4 changed files with 11 additions and 3 deletions
|
@ -7,5 +7,5 @@ RUN bun install
|
|||
|
||||
ADD src src
|
||||
|
||||
CMD bun src/index.js
|
||||
CMD bun src/index.ts
|
||||
EXPOSE 3003
|
||||
|
|
BIN
api/bun.lockb
BIN
api/bun.lockb
Binary file not shown.
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue