You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
router.get('/').query('paramName',{type: number,optional: true,doc: 'Number of things'}).query('paramName2',{type: number,optional: false,doc: 'Number of things'}).handler(function(req,res){typeofreq.query.paramName==='number';// this would be true});
type could be also function taking string as parameter and returning promise or value.