Skip to content

Instantly share code, notes, and snippets.

@robertov8
Created July 28, 2020 14:24
Show Gist options
  • Save robertov8/71765bc995f9d57ac9c1969dcb446f9f to your computer and use it in GitHub Desktop.
Save robertov8/71765bc995f9d57ac9c1969dcb446f9f to your computer and use it in GitHub Desktop.
JSON Server + Form-Data
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