Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express controller

/*controllers/indexController.js*/
exports.index = async function(req, res, next) {
/*your code here*/
/*req is the data that you got from the user*/
/*res is what you send back such as res.render("/index", {title:"Express"});*/
}
 
PREVIOUS NEXT
Tagged: #express #controller
ADD COMMENT
Topic
Name
1+2 =