From 49f03e2a7e79854262b70b40e9cc1534da460780 Mon Sep 17 00:00:00 2001 From: Yoga Pranata Date: Tue, 5 Jul 2022 23:28:49 +0700 Subject: [PATCH] typo fix --- lib/wibu_api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/wibu_api.js b/lib/wibu_api.js index 4cb4e14..743b292 100644 --- a/lib/wibu_api.js +++ b/lib/wibu_api.js @@ -1,7 +1,7 @@ // 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) => { @@ -9,7 +9,7 @@ async function Nsfw(endpoint) { 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) @@ -30,4 +30,4 @@ async function Nsfw(endpoint) { }) } -module.exports.Nsfw = Nsfw \ No newline at end of file +module.exports.Nsfw = Nsfw