Adding streaming JSON support
This commit is contained in:
@@ -11,15 +11,22 @@ router.route("/getComicCovers").post(async (req: Request, res: Response) => {
|
|||||||
typeof req.body.extractionOptions === "object"
|
typeof req.body.extractionOptions === "object"
|
||||||
? req.body.extractionOptions
|
? req.body.extractionOptions
|
||||||
: {};
|
: {};
|
||||||
|
console.log(oboe);
|
||||||
oboe({
|
oboe({
|
||||||
url: "http://localhost:3853/api/import/getComicCovers",
|
url: "http://localhost:3000/api/import/getComicCovers",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
body: {
|
||||||
extractionOptions: req.body.extractionOptions,
|
extractionOptions: req.body.extractionOptions,
|
||||||
walkedFolders: req.body.walkedFolders,
|
walkedFolders: req.body.walkedFolders,
|
||||||
}
|
},
|
||||||
})
|
headers: {
|
||||||
res.json(foo);
|
"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) => {
|
router.route("/walkFolder").post(async (req: Request, res: Response) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user