🅿️ Paginating covers response

This commit is contained in:
2021-05-03 22:35:00 -07:00
parent a4f9c82847
commit 436bbc56a1
6 changed files with 39 additions and 9 deletions

View File

@@ -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",
// );