From e5132b22701c6d29600fe91ba3e6fe587a043452 Mon Sep 17 00:00:00 2001 From: smfahim25 Date: Wed, 19 Mar 2025 11:43:12 +0600 Subject: [PATCH] remove prefix --- src/app.ts | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/src/app.ts b/src/app.ts index 7c373be..6615eec 100644 --- a/src/app.ts +++ b/src/app.ts @@ -25,35 +25,7 @@ const app = new Elysia() credentials: true, }) ) - .use( - swagger({ - path: "/docs", - documentation: { - info: { - title: "Canvas API", - version: "1.0.0", - description: "Canvas API Documentation", - }, - tags: [ - { name: "Default", description: "Default endpoints" }, - { name: "Projects", description: "All APIs related to Projects" }, - { name: "Uploads", description: "All APIs related to Uploads" }, - { name: "Auth", description: "Authentication related endpoints" }, - { name: "Download", description: "Download count related endpoints" }, - ], - servers: [ - { - url: ENV.SERVER_URL, - description: "Canvas API Server", - }, - ], - }, - processRoutes: (routes) => { - console.log("Swagger found routes:", routes); - return routes; - }, - }) - ) + .use(swagger()) .get("/test", () => "Hello World", { detail: { tags: ["Default"], @@ -64,4 +36,4 @@ const app = new Elysia() .listen(ENV.SERVER_PORT); console.log(`🦊 Elysia is running at ${ENV.SERVER_URL}`); -console.log(`Swagger docs available at ${ENV.SERVER_URL}/docs`); +console.log(`Swagger docs available at ${ENV.SERVER_URL}/swagger`);