0
0
Fork 0

Add a healthcheck endpoint

This commit is contained in:
Oliver-Akins 2023-08-26 20:37:46 -06:00
parent 21f08cecab
commit d815c8d557

9
src/endpoints/health.ts Normal file
View file

@ -0,0 +1,9 @@
import { ServerRoute } from "@hapi/hapi";
const route: ServerRoute = {
method: `GET`, path: `/health`,
async handler(_, h) {
return h.response().code(204);
},
};
export default route;