try to solve
This commit is contained in:
parent
16c9c5f4d7
commit
018ad66e57
1 changed files with 4 additions and 1 deletions
|
|
@ -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`);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue