From 0ea857261ea300d5a26cdf3bc15b0847f58f8fc0 Mon Sep 17 00:00:00 2001 From: smfahim25 Date: Thu, 20 Mar 2025 14:31:26 +0600 Subject: [PATCH] update --- src/app.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app.ts b/src/app.ts index be80839..a757a59 100644 --- a/src/app.ts +++ b/src/app.ts @@ -44,15 +44,13 @@ const app = new Elysia() description: "Canvas API Documentation", }, }, + // Removed invalid processRoutes property }) ) .listen(ENV.SERVER_PORT); -// Print all registered routes -console.log("\nšŸ“ Registered Routes:"); app.routes.forEach((route) => { - const methods = Object.keys(route.handlers).join(", "); - console.log(`${methods.padEnd(20)} ${route.path}`); + console.log(`Route: ${route.method} ${route.path}`); }); console.log(`\n🦊 Elysia is running at ${ENV.SERVER_URL}`);