Browse Source

dumb typo!

master
Rich Brown 1 year ago
parent
commit
b9c3086450
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routes/createRouter.js

+ 2
- 2
routes/createRouter.js View File

@@ -8,8 +8,8 @@ const upload = multer({ storage });
const createRouter = express.Router();

createRouter.post('/form', upload.single('file'), (req, res) => {
const { file, body: { title, body, arrayOfTags } } = req.body;
console.log(file, body, title, arrayOfTags);
const { file, body: { title, body, arrayOfTags } } = req;
// console.log(file, body, title, arrayOfTags);
return req.app.locals.mp
.create(
{


Loading…
Cancel
Save