Skip to content

Commit

Permalink
Update main.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
joanfabregat committed Dec 2, 2024
1 parent 32e7fa5 commit 9308073
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@

import express from 'express';
import multer from 'multer';
import * as path from "path";
import * as fs from "fs";
import * as path from 'path';
import * as fs from 'fs';
import uniqid from 'uniqid';
import Jimp from 'jimp';

const port = +(process.env.PORT ?? 3000);
const tempDir = 'temp';

const app = express();
const upload = multer({dest: tempDir});

const upload = multer({dest: tempDir});
const cpUpload = upload.fields([
{name: 'image', maxCount: 1},
{name: 'watermark', maxCount: 1},
Expand Down

0 comments on commit 9308073

Please sign in to comment.