Skip to content

Instantly share code, notes, and snippets.

@mbrown3321
Last active November 1, 2020 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbrown3321/9ef460b63ffd69515ce5db477de26c35 to your computer and use it in GitHub Desktop.
Save mbrown3321/9ef460b63ffd69515ce5db477de26c35 to your computer and use it in GitHub Desktop.
const express = require("express");
const app = express();
const cors = require("cors");
const uploadRoutes = require("./routes/uploads");
const bodyParser = require("body-parser");
app.use("*", cors());
app.use(bodyParser.json({ limit: "100mb", extended: true }));
app.use(uploadRoutes);
app.listen(8000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment