v2
Kit Kasune 2 years ago
parent 58ea237730
commit fed56baec9
  1. 2
      .gitignore
  2. 1053
      package-lock.json
  3. 1
      package.json
  4. 7
      src/api/index.js

2
.gitignore vendored

@ -3,8 +3,6 @@ auth.json
test.js
/.idea/
api/**/*
api/
.idea/**/*
/man.js
.history/

1053
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -12,6 +12,7 @@
"discord-api-types": "^0.22.0",
"discord.js": "^14.6.0",
"dreidels": "^0.5.2",
"express": "^4.18.2",
"fuzzysort": "^1.1.4",
"gradient-string": "^2.0.0",
"lastfm": "^0.9.0",

@ -0,0 +1,7 @@
const express = require('express');
const api = express();
api.get('/', (req, res) => res.send("You've reached the wubzy.xyz API. If you're looking for Natsuki's endpoints, please append /natsuki to your query."));
api.get('/natsuki', (req, res) => res.send("You've reached Natsuki's API. Receiving this 200 reply indicates that Natsuki is online."));
const server = api.listen(4072, () => console.log(`Ready at ${server.address().address}:${server.address().port}`));
Loading…
Cancel
Save