Adding streaming JSON support

This commit is contained in:
2021-05-10 15:11:13 -07:00
parent 1f50767666
commit 924453b22d

View File

@@ -11,15 +11,22 @@ router.route("/getComicCovers").post(async (req: Request, res: Response) => {
typeof req.body.extractionOptions === "object"
? req.body.extractionOptions
: {};
console.log(oboe);
oboe({
url: "http://localhost:3853/api/import/getComicCovers",
url: "http://localhost:3000/api/import/getComicCovers",
method: "POST",
data: {
body: {
extractionOptions: req.body.extractionOptions,
walkedFolders: req.body.walkedFolders,
}
})
res.json(foo);
},
headers: {
"Content-Type": "application/json",
"Content-Length": req.body.length,
},
}).node("{name path fileSize}", (data) => {
console.log(data);
return res.sendStatus(200);
});
});
router.route("/walkFolder").post(async (req: Request, res: Response) => {