Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express');
- const app = express();
- const port = 3000;
- app.use(express.json());
- app.use(function (req, res, next) {
- console.log(req.url, req.body);
- res.json({"success": "OK"});
- });
- app.listen(port, () => console.log(`Example app listening on port ${port}!`));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement