Feat: resolveUrl, add neobook (#803)
* neobook * add qs * fix * / * fix * expandURL -> resolveUrl * fix Agitoon * Update ranobelib.ts --------- Co-authored-by: nyagami <hoangquan05112002@gmail.com>
This commit is contained in:
@@ -143,6 +143,18 @@ app.post("/fetchImage/", async (req, res) => {
|
||||
res.json({ error: String(err) });
|
||||
}
|
||||
});
|
||||
app.post("/resolveUrl/", async (req, res) => {
|
||||
try {
|
||||
const fullURL = await pluginApi.resolveUrl(
|
||||
req.body["pluginRequirePath"],
|
||||
req.body["path"],
|
||||
req.body["isNovel"],
|
||||
);
|
||||
res.send(fullURL);
|
||||
} catch (err: unknown) {
|
||||
res.json({ error: String(err) });
|
||||
}
|
||||
});
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.sendFile(path.join(dirname, "test_web", "index.html"));
|
||||
|
||||
Reference in New Issue
Block a user