mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-20 06:37:23 +02:00
fix: fix healthcheck
This commit is contained in:
1 parent
c940c98b6e
commit
9048b5c3b1
4 files changed
+18
-7
No files matched your search
@@ -159,6 +159,9 @@ export default async function start() {
|
||||
stat = {};
|
||||
}, 1000 * 60 * 60);
|
||||
|
||||
apiRouter.get("/healthcheck", async (_, res) => {
|
||||
res.json({ status: "ok" });
|
||||
});
|
||||
apiRouter.get("/stat", async (_, res) => {
|
||||
if (stat.nbRepositories) {
|
||||
res.json(stat);
|
||||
|
||||
Reference in new issue
Block a user