I'm unable to find the code of get
or post
methods. I haven't found them in expressjs lib folder, so it's probably that they are present in one of the js files the Router
requires.
var express = require('express');
var router = express.Router();
var Blah = require('../modules/Blah');
router.post('/', function(req, res, next) {
Blah.foo(req, res);
});
I need it to find out where the next
parameter is passed to that callback function above, because it has to be done by ExpressJS framework under the hood.