refactor: Classes for Plugins (#631)
* set target to ES5 * refactor types * use .gitkeep * use dot to make dist/js dirs on top * add hako * add Hako * add madara * fix: url path js -> .js * fix: branch * freestyle for using UA, cookie * add parseNovels for Hako * update readme * fix: conflict types * add Kolnovel, remove node-fetch * add bestlightnovel * add plugins * WQMangaStreamScraper * PandaMTL * NobleMTL * LightNovelBrasil * WPMangaStream * add filters for popularNovels * fix undefined json * Linovelib (#26) * linovelib CN * icon for linovelib * fix undefined chapter * add check * fix: add artist * TuNovelaLigera ES + Madara Fix (#28) * app repo test * POST is now working * update madara template + run generator * template fix didnt get pushed commited idk why * template update POST * generated * fix: useNewChapterEndpoint update (#29) * useNewChapterEndpoint update * Update Selectors --------- Co-authored-by: K1ngfish3r <trulyihu@gmail.com>
This commit is contained in:
@@ -20,6 +20,10 @@ app.get("/all_plugins", (req, res) => {
|
||||
const allPlugins = pluginApi.all_plugins();
|
||||
res.json(allPlugins);
|
||||
});
|
||||
app.post("/filters", async (req, res) => {
|
||||
const filters = await pluginApi.getFilter(req.body['pluginRequirePath']);
|
||||
res.json(filters || []);
|
||||
})
|
||||
app.post("/popularNovels/", async (req, res) => {
|
||||
const filters = req.body["filters"] || {};
|
||||
const showLatestNovels = req.body["showLatestNovels"] || false;
|
||||
|
||||
Reference in New Issue
Block a user