Created
July 28, 2020 14:24
-
-
Save robertov8/71765bc995f9d57ac9c1969dcb446f9f to your computer and use it in GitHub Desktop.
JSON Server + Form-Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const jsonServer = require('json-server'); | |
const multer = require('multer'); | |
const server = jsonServer.create(); | |
server.use(formData.array()); | |
server.listen(3004, () => { | |
console.log('JSON Server is running'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment