📚 Added a library with a masonry grid

This commit is contained in:
2021-09-20 08:24:03 -07:00
parent 8e518c93a8
commit 7d56be71f9
10 changed files with 150 additions and 9 deletions

View File

@@ -5,14 +5,14 @@ import axios from "axios";
router.route("/getComicCovers").post(async (req: Request, res: Response) => {
typeof req.body === "object" ? req.body : {};
await axios.request({
url: "http://localhost:3000/api/import/importComicsToDB",
url: "http://localhost:3000/api/import/processAndImportToDB",
method: "POST",
data: {
extractionOptions: req.body.extractionOptions,
walkedFolders: req.body.walkedFolders,
},
});
res.send({ po: "jo" });
res.send({ message: "Scan and import initiated." });
});
export default router;