File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { results } from "./pages/results";
1818import { root } from "./pages/root" ;
1919import { upload } from "./pages/upload" ;
2020import { user } from "./pages/user" ;
21+ import { healthcheck } from "./pages/healthcheck" ;
2122
2223mkdir ( "./data" , { recursive : true } ) . catch ( console . error ) ;
2324
@@ -48,6 +49,7 @@ const app = new Elysia({
4849 . use ( deleteFile )
4950 . use ( listConverters )
5051 . use ( chooseConverter )
52+ . use ( healthcheck )
5153 . onError ( ( { error } ) => {
5254 console . error ( error ) ;
5355 } ) ;
Original file line number Diff line number Diff line change 1+ import Elysia from "elysia" ;
2+ import { userService } from "./user" ;
3+
4+ export const healthcheck = new Elysia ( ) . use ( userService ) . get (
5+ "/healthcheck" ,
6+ ( ) => {
7+ return { status : "ok" } ;
8+ } ,
9+ {
10+ auth : false ,
11+ } ,
12+ ) ;
You can’t perform that action at this time.
0 commit comments