What's the opts argument in resource() for? #63

bow-fujita opened this Issue Jul 26, 2012 · 1 comment


None yet

1 participant



I looked thru express-resource/index.js and wondered what happens if I pass an object as third argument in express.HTTPServer.prototype.resource() function.

Each property in opts is copied to options, which is a local variable, at line 259 in index.js.
However, neither opts nor options are passed to the Resource object. The opts argument seems useless.
The comment above resource() doesn't mention the opts at all.
Is this reserved for future functionality?

Thank you,


Sorry about my misunderstanding.
I see that each props in opts are applied to actions through options. It makes sense.


@bow-fujita bow-fujita closed this Jul 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment