From 274378c858ac330ed07a19bdd01228000a1d3e2c Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Mon, 11 Sep 2023 15:04:00 +0200 Subject: [PATCH] fix: path --- api/Dockerfile | 2 +- api/bun.lockb | Bin 3482 -> 5491 bytes api/package.json | 2 +- api/src/index.ts | 10 +++++++++- 4 files changed, 11 insertions(+), 3 deletions(-) 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 27bcfd148e3546df21eb61a80f3a59e3358f6d04..046c91e729b201a9b8259080386f895a460976b2 100755 GIT binary patch delta 2070 zcmbtUeN0nV6uzfY346fz#Or=m*#YCbq3eLI*z}i^mGb^ zC3HH~jI(Gx^#Iq=x>z_fXIeNHIfouF0B|K>AmB#82taJ0<`Gr@Pk~qggg2!5K&?fD zo%I*6xdICw5qM%aPd0pLI`08t)cwq}A3Ukx@c|an5iNM=AH8rdy~IIEaAg2VpNLIH zXf-)AXOj_h$=z^9ki?PF#HJ(RUQp*X;^PYbuR`tBUbQryFM8EMp|P1`pe5#nJ&Si( zlR;eAaWtav;f?CNxY>%mCqJ-vb{*9AG@ucMLv3HKZ*x>t{@q(Vf8Ob(F_jHz|D0Ge zHhkrm(U)%S?{3~jnkVQAy&=lpmEUe|e7sfe8fkrVpDgxt-`y@pcj6mgJeGAuDQnJW z`8ftUc3NtqB6sZmtD^V~rGMUi+P9~!*wJ^*WL%lBMbo0+ ze09a~Ny1X1$eZ{3d*>W=-!6-s|FwSo+?sXgIu~cYUVpAjSuk4rQP_d;lRX)ZceM5;>?h-agUL#8SuNoyJZ3R2XTUe z^nlPrjNB$EAc7x>A~%}BKiMi0zEDI$AqDIFB0`8R2_X-P+|gk^R4&6tzl>bs0@^8z z2r;!m%fvJB2nkb37%sFp2x65GE6g`;{-j-V(R7)?&f4qTMLhpRGYPkG2;qJVh%!fTM-v^{)xQRy01}g zG?%LhH?#kf)H@3*Pup!a*1Daw7WReL6qIB?s)NA-?RV}<)_zY_1&m$dRjOeWU)a*4T0WwEjZcq+pavDv2P z37jhp#SbL;?YYuw$}u4|Rq1)5iAdGdP*qA|vZhFzlEEENT~<+Su$3}JWfkRYG0R$} z?@R4=i*1QoZDmbn8(uFBh?^dvRy`-8BKH-K_e#SuUr^>nNjk=E+A$@EG(bItd6o-h jH1L;_Op-h|=eaGCvtZ%^AYo#o(lQB50y!HVoblzqdFC$C delta 812 zcmeyYHA{Mep61oQoS6@&bFiIf4Q#i!>G=M5E{FW#*ZCWTelGC2cJ=i!E?x#O;FuUL zZ=b;d;V>{H7G#2%sX3L!nTZSx89*LTWkWoW<^r7ERzN08JxDJr5VL~}0s>?jWI4<$=rl+z zNH6*N|MCB0WZ0a}TFNwe3a3x~3Mq*NDL~Ue2EsrE9|KqnW;sZlMq*-cpQ2bYIgrtK zGY@w-BR9has4I?eOit!?lxFz%9|Az?L80~mD$m0?c^|Kl7zeDOiVe6C8@YlOG?9%jfx=i zR;`(NmQ0KWdWL!?K$9~j$MZ|tl>%8@z+^OEwLwR_H8n|u(au)ERL?-q0G7Z6oIBQ> zIlM@Oi80O)C~nBWun4FD1Qu~kmJ@K`x&Y-e@lIYPpu(9{nx|V*S&&*hd7+5(WNX1d cE-){-D6^mhB(!xJ*BSO-X_lRr<0CgyozW@LL 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);