From 994c9fcb020439680a6adc76028c0665964c7d7a Mon Sep 17 00:00:00 2001 From: smfahim25 Date: Wed, 19 Mar 2025 12:17:22 +0600 Subject: [PATCH] try to solve swagger issue --- src/app.ts | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/src/app.ts b/src/app.ts index b20bee1..b47567a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -25,20 +25,12 @@ const app = new Elysia() credentials: true, }) ) - .get("/test", () => "Hello World", { - detail: { - tags: ["Default"], - responses: { - 200: { - description: "Success response", - }, - }, - }, - }) + .get("/test", () => "Hello World", {}) .use(api) .use( swagger({ path: "/swagger", + provider: "swagger-ui", // Explicitly use swagger-ui instead of scalar documentation: { openapi: "3.0.3", info: { @@ -46,21 +38,6 @@ const app = new Elysia() version: "1.0.0", description: "Canvas API Documentation", }, - servers: [ - { - url: ENV.SERVER_URL, - description: "API server", - }, - ], - components: { - schemas: {}, - securitySchemes: {}, - }, - }, - swaggerOptions: { - persistAuthorization: true, - displayOperationId: true, - filter: true, }, }) )