chore: file formatting
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import multer from "multer";
|
||||
import path from "path";
|
||||
import multer from 'multer';
|
||||
import path from 'path';
|
||||
|
||||
const storage = multer.diskStorage({
|
||||
destination: function (req, file, cb) {
|
||||
cb(null, "uploads/blog");
|
||||
cb(null, 'uploads/blog');
|
||||
},
|
||||
|
||||
filename: function (req, file, cb) {
|
||||
@@ -12,4 +12,4 @@ const storage = multer.diskStorage({
|
||||
},
|
||||
});
|
||||
|
||||
export const upload = multer({storage});
|
||||
export const upload = multer({ storage });
|
||||
|
||||
Reference in New Issue
Block a user