mirror of
https://github.com/DaInfLoop/Battler-Generator.git
synced 2024-11-23 06:09:58 +00:00
add status path to indicate gen is up
This commit is contained in:
parent
70cc204d85
commit
43a3a99738
4
index.ts
4
index.ts
|
@ -153,6 +153,10 @@ const server = createServer(async (req, res) => {
|
|||
|
||||
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") {
|
||||
console.log(`Generating battler`)
|
||||
const opts = Object.fromEntries(
|
||||
|
|
Loading…
Reference in a new issue