Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. I am working on a node server with express and I did set a default server for all pages and it works fine, hwever, when I try to avaoid the laout in some pages, it still get used, my code is bellow maybe someone can help me
  2.  
  3. my app.js configuratiomn
  4.  
  5. my router
  6.  
  7. router.get('/', function(req, res, next) {
  8. res.render('listings', {
  9. title: 'listings',
  10. page:'listing',
  11. layout: 'dashboard',
  12. });
  13. });
  14.  
  15. module.exports = router;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement