feat: add healthcheck endpoint (#431)
This commit is contained in:
parent
32d1c567b9
commit
80b55657a4
2 changed files with 14 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ import { results } from "./pages/results";
|
|||
import { root } from "./pages/root";
|
||||
import { upload } from "./pages/upload";
|
||||
import { user } from "./pages/user";
|
||||
import { healthcheck } from "./pages/healthcheck";
|
||||
|
||||
mkdir("./data", { recursive: true }).catch(console.error);
|
||||
|
||||
|
|
@ -48,6 +49,7 @@ const app = new Elysia({
|
|||
.use(deleteFile)
|
||||
.use(listConverters)
|
||||
.use(chooseConverter)
|
||||
.use(healthcheck)
|
||||
.onError(({ error }) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue