Using the new Express 4.x feature of the Express Router (miniature instance of Express Application) paths are improperly reported to API Analytics.
index.js (Require routes)
app.use('/account', require('./routes/account'))
routes/account.js (Account Router)
var express = require('express');
var router;
module.exports = router = express.Router();
router.get('/:id', function (req, res, next) {
console.log(req.query.id)
});
Fetching /accounts/2958926829234 would result in API Analytics displaying /2958926829234 instead of the correct path with the /accounts segment prepended.
Using the new Express 4.x feature of the Express Router (miniature instance of Express Application) paths are improperly reported to API Analytics.
index.js (Require routes)
routes/account.js (Account Router)
Fetching
/accounts/2958926829234
would result in API Analytics displaying/2958926829234
instead of the correct path with the/accounts
segment prepended.