🅿️ Paginating covers response
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import router from "../router";
|
||||
import { default as paginate } from "express-paginate";
|
||||
import {
|
||||
walkFolder,
|
||||
extractArchive,
|
||||
@@ -14,8 +15,9 @@ router.route("/getComicCovers").post(async (req: Request, res: Response) => {
|
||||
typeof req.body.extractionOptions === "object"
|
||||
? req.body.extractionOptions
|
||||
: {};
|
||||
console.log(req.body)
|
||||
const extractedData = await extractArchive(req.body);
|
||||
console.log(extractedData);
|
||||
// const pageCount = Math.ceil( / req.body.paginationOptions.pageLimit);
|
||||
// const foo = await extractMetadataFromImage(
|
||||
// "./comics/covers/Ghosts and Ruins-001.jpg",
|
||||
// );
|
||||
|
||||
Reference in New Issue
Block a user