From a3e4c8dcfdb81b4cd271675c8340b6d453fcaa9d Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 9 Apr 2023 08:40:07 +0600 Subject: [PATCH] added a status check endpoint --- src/cobalt.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cobalt.js b/src/cobalt.js index ea615601..17c84ce4 100644 --- a/src/cobalt.js +++ b/src/cobalt.js @@ -166,6 +166,9 @@ if (fs.existsSync('./.env') && process.env.selfURL && process.env.streamSalt && app.get("/api", (req, res) => { res.redirect('/api/json') }); + app.get("/status", (req, res) => { + res.status(200).end() + }); app.get("/", (req, res) => { res.sendFile(`${__dirname}/${findRendered(languageCode(req), req.header('user-agent') ? req.header('user-agent') : genericUserAgent)}`); });