Sha256: 27c944adea98825a3ff952958d7a1d66251201279991485185e4b0282d4291ec
Contents?: true
Size: 602 Bytes
Versions: 8
Compression:
Stored size: 602 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
8 entries across 8 versions & 1 rubygems