From 85431a892ed2339b539d08fec6c7793e95671f44 Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Fri, 19 Jan 2024 18:44:51 -0600 Subject: [PATCH] Root --- index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f21c3a5..2b83a68 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,17 @@ const PORT = process.env.PORT || 8080 var app = express() - +app.get("/", (req, res) => { + res.send({ + info: "Welcome to the API! It's still a work in process, so there's not much here yet. I don't really know how to do APIs yet so expect it to suck if I add anything.", + documentation: "https://codeberg.org/Bingus_Violet/api.violets-purgatory.dev", + current_commands: { + "/v1/pfp": { + description: "Generates a random PFP. For use on the main page & with UserPFP on Discord." + } + } + }) +}) app.listen(PORT, () => { console.log("API is now listening on port 8080!")