I am new to nodejs/express. I have one requirement to host some nested pages. For example, I have to host some pages like:
http://IP:port/cartoons,
http://IP:port/cartoons/micky,
http://IP:port/cartoons/minnie
I am able to host cartoons page, by creating app.js with below details:
var cartoonRouter = require('./routes/cartoons');
app.use('/cartoons', cartoonRouter);
And making the corresponding changes in routes/cartoon.js And it is working fine. But I am unable to write the same for 'cartoons/micky'.
Could someone help with that?