Root
This commit is contained in:
parent
6129396c04
commit
85431a892e
1 changed files with 11 additions and 1 deletions
12
index.js
12
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!")
|
||||
|
|
Loading…
Reference in a new issue