Sha256: 0166a56d50cf27ac2a456683cc0ffb9256dfb370b523aa2f903145305c8df347

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

Intro::Engine.routes.draw do
  namespace :admin do
    resources :sessions, only: [:new, :create] do
      delete :sign_out, on: :collection
    end

    resources :images, only: [:create]

    resources :tours do
      member do
        put :publish
      end

      collection do
        get  :route
        match :attempt, via: [:post, :put, :patch]
      end
    end

    root to: 'tours#index'
  end

  resources :tours, only: [:index] do
    post :record, on: :collection
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
intro-0.4.1 config/routes.rb
intro-0.4.0 config/routes.rb