Sha256: c561c39f05d23f45b27fda89b411d87cfb5aa012b1e07633084b37ec4fde39c7

Contents?: true

Size: 488 Bytes

Versions: 24

Compression:

Stored size: 488 Bytes

Contents

Rails.application.routes.draw do

  namespace :wcms_components do
    resources :embedded_images, only: [:create], defaults: { format: 'json' }
    resources :people, only: [:index], defaults: { format: 'json' }
    resources :tags, only: [:index], defaults: { format: 'json' }
  end

  # this is just a convenience to create a named route to rack-cas' logout
  get '/logout' => -> env { [200, { 'Content-Type' => 'text/html' }, ['Rack::CAS should have caught this']] }, as: :logout

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
biola_wcms_components-0.4.0 config/routes.rb
biola_wcms_components-0.3.0 config/routes.rb
biola_wcms_components-0.2.1 config/routes.rb
biola_wcms_components-0.2.0 config/routes.rb