add to index

This commit is contained in:
C4illin 2025-11-02 13:46:07 +01:00
parent 722d458d9f
commit 2b5663c82e
2 changed files with 4 additions and 2 deletions

View file

@ -18,6 +18,7 @@ import { results } from "./pages/results";
import { root } from "./pages/root"; import { root } from "./pages/root";
import { upload } from "./pages/upload"; import { upload } from "./pages/upload";
import { user } from "./pages/user"; import { user } from "./pages/user";
import { healthcheck } from "./pages/healthcheck";
mkdir("./data", { recursive: true }).catch(console.error); mkdir("./data", { recursive: true }).catch(console.error);
@ -48,6 +49,7 @@ const app = new Elysia({
.use(deleteFile) .use(deleteFile)
.use(listConverters) .use(listConverters)
.use(chooseConverter) .use(chooseConverter)
.use(healthcheck)
.onError(({ error }) => { .onError(({ error }) => {
console.error(error); console.error(error);
}); });

View file

@ -1,7 +1,7 @@
import Elysia from "elysia"; import Elysia from "elysia";
import { userService } from "./user"; import { userService } from "./user";
export const chooseConverter = new Elysia().use(userService).get( export const healthcheck = new Elysia().use(userService).get(
"/healthcheck", "/healthcheck",
() => { () => {
return { status: "ok" }; return { status: "ok" };