diff --git a/src/app.ts b/src/app.ts index 770b4dc..cb5f444 100644 --- a/src/app.ts +++ b/src/app.ts @@ -13,7 +13,7 @@ const allowedOrigins = [ ]; const app = new Elysia({ - prefix: "/api", // Add this prefix + prefix: "", tags: ["Default"], }) .use( @@ -62,6 +62,8 @@ const app = new Elysia({ // all routes here app.use(api); +app.get("/", () => "API root is working"); + app.listen(ENV.SERVER_PORT, () => { console.log(`🦊 Elysia is running at ${ENV.SERVER_URL}:${ENV.SERVER_PORT}`); });