A lazy way of doing singular resources #9

Closed
wants to merge 4 commits into
from

3 participants

@macavon

I'm not 100% sure this works in all cases, but exporting id as the empty string from a resource with only the singular actions, plus a bit of special-casing on that, and it seems to fall out.

Please take a look when you have a moment.

@macavon

I just merged a load of upstream changes, and some things broke. I don't have a lot of time to look for the problem, so if you are not going to use this approach to singular resources, maybe I should close this request. If you do want to use the code, I'll look into it further.

@tj
expressjs member
tj commented Jun 7, 2011

thought I had something similar already, I'll have to take a closer look

@mereskin mereskin closed this Sep 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment