Sails unmatched custom route

Report
Question

Please briefly explain why you feel this question should be reported .

Report Cancel

Created a custom route that gets called and still returns a response, but I receive console errors about the route being unmatched. If the action of the route goes longer than a certain amount of time, the route will return a 500.

config/routes.js
'get /1.0/forms/withRelated': {
    controller: 'FormController',
    model: 'form',
    action: 'get'
  }

It happens when I try to send a request such as /1.0/forms/withRelated or with parameters /1.0/forms/withRelated?limit=500. For some reason, express is unable to match the route compared to the other blueprint routes generated.

0
0 Answer 14 views 0