🧩 Comlink funkiness
This commit is contained in:
@@ -15,6 +15,7 @@ const port: number = Number(process.env.PORT) || 8050; // set our port
|
||||
|
||||
// Send index.html on root request
|
||||
app.use(express.static("dist"));
|
||||
app.use(express.static("src/client/workers"));
|
||||
app.get("/", (req: Request, res: Response) => {
|
||||
console.log("sending index.html");
|
||||
res.sendFile("/dist/index.html");
|
||||
|
||||
@@ -14,7 +14,7 @@ router.route("/getComicCovers").post(async (req: Request, res: Response) => {
|
||||
typeof req.body.extractionOptions === "object"
|
||||
? req.body.extractionOptions
|
||||
: {};
|
||||
const foo = await extractArchive(req.body.extractionOptions);
|
||||
const extractedData = await extractArchive(req.body.extractionOptions);
|
||||
// const foo = await extractMetadataFromImage(
|
||||
// "./comics/covers/Ghosts and Ruins-001.jpg",
|
||||
// );
|
||||
@@ -22,8 +22,7 @@ router.route("/getComicCovers").post(async (req: Request, res: Response) => {
|
||||
// const foo = await unzip("asd");
|
||||
// const foo = explodePath("Chapter Three/HELLBOY - The Chained Coffin - 069.jpg");
|
||||
res.json({
|
||||
jagan: "trupti",
|
||||
foo,
|
||||
extractedData,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user