Sha256: 1c4e5a201b0a591add7d47eebc0026ab83c3ce0da937a405971443268b026ffb

Contents?: true

Size: 650 Bytes

Versions: 8

Compression:

Stored size: 650 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', 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

Version Path
apicasso-0.4.11 config/routes.rb
apicasso-0.4.10 config/routes.rb
apicasso-0.4.9 config/routes.rb
apicasso-0.4.8 config/routes.rb
apicasso-0.4.7 config/routes.rb
apicasso-0.4.6 config/routes.rb
apicasso-0.2.16 config/routes.rb
apicasso-0.2.15 config/routes.rb