try to solve

This commit is contained in:
smfahim25 2025-03-20 14:14:28 +06:00
parent 16c9c5f4d7
commit 018ad66e57

View file

@ -27,7 +27,7 @@ const app = new Elysia()
credentials: true, credentials: true,
}) })
) )
.post("/test", () => "Hello World", {}) .get("/test", () => "Hello World", {})
.use(api) .use(api)
.use( .use(
swagger({ swagger({
@ -44,5 +44,8 @@ const app = new Elysia()
) )
.listen(ENV.SERVER_PORT); .listen(ENV.SERVER_PORT);
app.onRequest((request) => {
console.log(`${request.method} ${request.url}`);
});
console.log(`🦊 Elysia is running at ${ENV.SERVER_URL}`); console.log(`🦊 Elysia is running at ${ENV.SERVER_URL}`);
console.log(`Swagger docs available at ${ENV.SERVER_URL}/swagger`); console.log(`Swagger docs available at ${ENV.SERVER_URL}/swagger`);