Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zYxDevs authored Jul 5, 2022
1 parent 4dcde23 commit 49f03e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wibu_api.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Don't Worry I'am Loli Killers :)

const axios = require('axios');
const baseUrl = 'https://api.wibu-api.eu.org'
const baseUrl = 'https://wibu-api.eu.org/api'

async function Nsfw(endpoint) {
return new Promise((resolve, reject) => {
const listEndpoint = ['ahegao','waifu','neko','trap','bj'];
if (listEndpoint.includes(endpoint)) {
const options = {
method: "GET",
url: baseUrl + '/api/anime/nsfw/' + endpoint,
url: baseUrl + '/anime/nsfw/' + endpoint,
};
axios.request(options).then(function (response) {
resolve(response.data)
Expand All @@ -30,4 +30,4 @@ async function Nsfw(endpoint) {
})
}

module.exports.Nsfw = Nsfw
module.exports.Nsfw = Nsfw

0 comments on commit 49f03e2

Please sign in to comment.