Sha256: 43f329f1c8e0b0a59503563b2ee9ae8082df44ae3f2dc27c97f725f686b0db95
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
Apicasso::Engine.routes.draw do scope module: :apicasso do resources :apidocs, only: [:index] get '/:resource/', to: 'crud#index', via: :get match '/:resource/', to: 'crud#create', via: :post get '/:resource/:id', to: 'crud#show', via: :get match '/:resource/:id', to: 'crud#update', via: :patch match '/:resource/:id', to: 'crud#destroy', via: :delete match '/:resource/:id/:nested/', to: 'crud#nested_index', via: :get match '/:resource/', to: 'crud#schema', via: :options match '/:resource/:id/:nested/', to: 'crud#schema', via: :options end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apicasso-0.1.5 | config/routes.rb |
apicasso-0.1.4 | config/routes.rb |