Hello guys i have small problem, i made my routes modular with Router one of my modules have path like that: app.use('/places/comments/:id', commentRoutes); My routes all like this: router.post('/', isLoggedIn, function (req, res) router.get('/new', isLoggedIn, function (req, res) I added param to express.Router({mergeParams : true}) But still i have GET request error at '/' endpoint, cannot GET. Where is the problem?
Submitted May 05, 2017 at 02:19PM by dameg92
No comments:
Post a Comment