add to index
This commit is contained in:
parent
722d458d9f
commit
2b5663c82e
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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" };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue