sinatra-resources icon indicating copy to clipboard operation
sinatra-resources copied to clipboard

Simple nested resources to DRY up Sinatra code

Results 2 sinatra-resources issues
Sort by recently updated
recently updated
newest added

To build an API I wanted to not repeat a condition to e.g. accept only JSON on every nested route of a resource, so I added support to specify them...

Would it be possible to somehow do the following: ``` resource :thingamaboo do member do |id| @thingamaboo = Thingamaboo.get(id) get do # do something with @thingamaboo end end end ```