feat: add healthcheck endpoint (#431)
This commit is contained in:
parent
32d1c567b9
commit
80b55657a4
2 changed files with 14 additions and 0 deletions
12
src/pages/healthcheck.tsx
Normal file
12
src/pages/healthcheck.tsx
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import Elysia from "elysia";
|
||||
import { userService } from "./user";
|
||||
|
||||
export const healthcheck = new Elysia().use(userService).get(
|
||||
"/healthcheck",
|
||||
() => {
|
||||
return { status: "ok" };
|
||||
},
|
||||
{
|
||||
auth: false,
|
||||
},
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue