Try the if else version on route.js
Try the SWITCH version on route.js