add status path to indicate gen is up

This commit is contained in:
DaInfLoop 2024-07-13 18:45:53 +01:00
parent 70cc204d85
commit 43a3a99738

View file

@ -153,6 +153,10 @@ const server = createServer(async (req, res) => {
const url = new URL(req.url!, "https://loc.al"); const url = new URL(req.url!, "https://loc.al");
if (req.method == "GET" && url.pathname == "/status") {
return res.end("OK")
}
if (req.method == "GET" && url.pathname == "/battler.png") { if (req.method == "GET" && url.pathname == "/battler.png") {
console.log(`Generating battler`) console.log(`Generating battler`)
const opts = Object.fromEntries( const opts = Object.fromEntries(