Compare commits
2 Commits
5eef52e301
...
e46711bf2f
| Author | SHA1 | Date | |
|---|---|---|---|
| e46711bf2f | |||
| 56e2b046b7 |
9
src/modules/status/index.ts
Normal file
9
src/modules/status/index.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import Elysia, { Context } from "elysia";
|
||||
import { returnWriteResponse } from "../../helpers/callback/httpResponse";
|
||||
|
||||
export const statusModule = new Elysia({ prefix: "status" }).get(
|
||||
"/",
|
||||
(ctx: Context) => {
|
||||
return returnWriteResponse(ctx.set, 200, "Service is up and running");
|
||||
},
|
||||
);
|
||||
Reference in New Issue
Block a user