Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express post body

app.use(express.json()); 
// ...
app.post('/test-page', function(req, res) {
    var name = req.body.name,
        color = req.body.color;
    // ...
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #post #body
ADD COMMENT
Topic
Name
9+1 =