fix: fix healthcheck

This commit is contained in:
tdurieux
2024-04-05 13:11:43 +01:00
parent c940c98b6e
commit 9048b5c3b1
4 changed files with 18 additions and 7 deletions
+4
View File
@@ -16,6 +16,10 @@ app.use(compression());
app.use("/api", router);
app.get("/healthcheck", async (_, res) => {
res.json({ status: "ok" });
});
app.all("*", (req, res) => {
handleError(
new AnonymousError("file_not_found", {