diff --git a/package-lock.json b/package-lock.json index ec85291..fe7bb16 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,38 +1,38 @@ { "name": "waifu.it", - "version": "3.4.13", + "version": "3.4.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "waifu.it", - "version": "3.4.13", + "version": "3.4.14", "license": "AGPLv3", "dependencies": { - "chalk": "^4.1.1", - "cli-table3": "^0.6.0", + "chalk": "^4.1.2", + "cli-table3": "^0.6.3", "cors": "^2.8.5", "discord-webhook-node": "^1.1.8", "dotenv": "^8.6.0", "express": "^4.18.2", - "express-rate-limit": "^5.3.0", - "express-winston": "^4.1.0", - "generate-password": "^1.6.0", - "http-errors": "^1.7.2", + "express-rate-limit": "^5.5.1", + "express-winston": "^4.2.0", + "generate-password": "^1.7.0", + "http-errors": "^1.8.1", "is-interactive": "^1.0.0", - "moment": "^2.29.1", + "moment": "^2.29.4", "mongodb": "^3.6.9", - "mongoose": "^5.13.9", + "mongoose": "^5.13.20", "ora": "^5.4.1", "owoify-js": "^2.0.0", "path": "^0.12.7", - "request-ip": "^2.1.3", - "winston": "^3.3.3", - "winston-daily-rotate-file": "^4.5.5" + "request-ip": "^2.2.0", + "winston": "^3.10.0", + "winston-daily-rotate-file": "^4.7.1" }, "devDependencies": { - "nodemon": "^2.0.12", - "prettier": "^2.3.2" + "nodemon": "^2.0.22", + "prettier": "^2.8.8" }, "engines": { "node": ">=18.x" @@ -74,9 +74,9 @@ } }, "node_modules/@types/node": { - "version": "20.3.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.3.tgz", - "integrity": "sha512-wheIYdr4NYML61AjC8MKj/2jrR/kDQri/CIpVoZwldwhnIrD/j9jIU5bJ8yBKuB2VhpFV7Ab6G2XkBjv9r9Zzw==" + "version": "20.4.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.2.tgz", + "integrity": "sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==" }, "node_modules/@types/triple-beam": { "version": "1.3.2", @@ -1277,9 +1277,9 @@ } }, "node_modules/mongoose": { - "version": "5.13.19", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.13.19.tgz", - "integrity": "sha512-t65+DaVfjlSfCPaPsev4YsbB2jHg4vylvkuQOBaCXkXIenXLDhE5ZNEXbChGoPUSFRUp7ihze6YenQwK3nIhPA==", + "version": "5.13.20", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.13.20.tgz", + "integrity": "sha512-TjGFa/XnJYt+wLmn8y9ssjyO2OhBMeEBtOHb9iJM16EWu2Du6L1Q6zSiEK2ziyYQM8agb4tumNIQFzqbxId7MA==", "dependencies": { "@types/bson": "1.x || 4.0.x", "@types/mongodb": "^3.5.27", @@ -1839,9 +1839,9 @@ } }, "node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -2082,9 +2082,12 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "node_modules/triple-beam": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", - "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.4.1.tgz", + "integrity": "sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==", + "engines": { + "node": ">= 14.0.0" + } }, "node_modules/type-is": { "version": "1.6.18", @@ -2169,9 +2172,9 @@ } }, "node_modules/winston": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/winston/-/winston-3.9.0.tgz", - "integrity": "sha512-jW51iW/X95BCW6MMtZWr2jKQBP4hV5bIDq9QrIjfDk6Q9QuxvTKEAlpUNAzP+HYHFFCeENhph16s0zEunu4uuQ==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.10.0.tgz", + "integrity": "sha512-nT6SIDaE9B7ZRO0u3UvdrimG0HkB7dSTAgInQnNR2SOPJ4bvq5q79+pXLftKmP52lJGW15+H5MCK0nM9D3KB/g==", "dependencies": { "@colors/colors": "1.5.0", "@dabh/diagnostics": "^2.0.2", diff --git a/package.json b/package.json index 1a716a0..305f3b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "waifu.it", - "version": "3.4.13", + "version": "3.4.14", "description": "Random API Serving Anime stuff", "author": "Aeryk", "private": true, @@ -14,30 +14,30 @@ "dev": "nodemon src/index.js" }, "dependencies": { - "chalk": "^4.1.1", - "cli-table3": "^0.6.0", + "chalk": "^4.1.2", + "cli-table3": "^0.6.3", "cors": "^2.8.5", "discord-webhook-node": "^1.1.8", "dotenv": "^8.6.0", "express": "^4.18.2", - "express-rate-limit": "^5.3.0", - "express-winston": "^4.1.0", - "generate-password": "^1.6.0", - "http-errors": "^1.7.2", + "express-rate-limit": "^5.5.1", + "express-winston": "^4.2.0", + "generate-password": "^1.7.0", + "http-errors": "^1.8.1", "is-interactive": "^1.0.0", - "moment": "^2.29.1", + "moment": "^2.29.4", "mongodb": "^3.6.9", - "mongoose": "^5.13.9", + "mongoose": "^5.13.20", "ora": "^5.4.1", "owoify-js": "^2.0.0", "path": "^0.12.7", - "request-ip": "^2.1.3", - "winston": "^3.3.3", - "winston-daily-rotate-file": "^4.5.5" + "request-ip": "^2.2.0", + "winston": "^3.10.0", + "winston-daily-rotate-file": "^4.7.1" }, "devDependencies": { - "nodemon": "^2.0.12", - "prettier": "^2.3.2" + "nodemon": "^2.0.22", + "prettier": "^2.8.8" }, "keywords": [ "node", diff --git a/src/routes.js b/src/routes.js index dc35781..a879d5a 100644 --- a/src/routes.js +++ b/src/routes.js @@ -86,6 +86,11 @@ const Limiter = rateLimit({ }, }) +// Base API +router.get('/api', (req, res) => { + res.redirect("https://docs.waifu.it/list-of-endpoints"); +}) + // Fact Endpoints router.get('/api/fact', Limiter, authHandler, randomFacts)