🩺 chore: add status check endpoint #14
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