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.
The text was updated successfully, but these errors were encountered:
elhigu
changed the title
Add query parameter describe / parse feature to dodo-core-features router
dodo-core-features: Add query parameter describe / parse feature to router
Jun 30, 2016
something which would be like UI router resolve thing to be able to separate fetching data and part where you use the data e.g. in access control check code...
Something like:
type
could be also function taking string as parameter and returning promise or value.The text was updated successfully, but these errors were encountered: