Skip to content

Instantly share code, notes, and snippets.

@nataliaconde
Created November 29, 2022 13:42
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 nataliaconde/42c4ce717030019df416859220085574 to your computer and use it in GitHub Desktop.
Save nataliaconde/42c4ce717030019df416859220085574 to your computer and use it in GitHub Desktop.
const bodyParser = require("body-parser");
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));
app.get("/", async (req, res) => {
res.json({
"message": "Hello world!",
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment