Add a healthcheck endpoint
This commit is contained in:
parent
21f08cecab
commit
d815c8d557
1 changed files with 9 additions and 0 deletions
9
src/endpoints/health.ts
Normal file
9
src/endpoints/health.ts
Normal 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;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue