express-resource
express-resource copied to clipboard
req.params not working fine with irregular verbs
If I have a 'countries' resource, then req.params.country is undefined. Instead this is what req.params has ('countrie'): params: [ countrie: '1', format: undefined ] },
We're having the same problem, lingo incorrectly guesses the singular of our 'narratives' resource is 'narratife'. Seems like the best way to fix it is to add an exception to the lingo library (which is what express-resource uses) here: https://github.com/visionmedia/lingo/blob/master/lib/languages/en.js and make a pull request.