fix Wuxiaworld searchUrl

This commit is contained in:
Rajarshee Chatterjee
2021-05-02 19:42:40 +05:30
parent 4f6d025f73
commit 302fbc91cb
+1 -1
View File
@@ -151,7 +151,7 @@ router.get("/novel/:novelUrl/:chapterUrl", async (req, res) => {
router.get("/search/", (req, res) => {
let searchTerm = req.query.s;
searchTerm = encodeURI(searchTerm);
const searchUrl = `https://www.wuxiaworld.com/api/novels/search?query=}`;
const searchUrl = `https://www.wuxiaworld.com/api/novels/search?query=`;
const url = `${searchUrl}${searchTerm}`;