Sha256: 19c95adbf8c1235400128622aeaf3aad263c281db79ae62a5ed62713f2d2525e

Contents?: true

Size: 897 Bytes

Versions: 2

Compression:

Stored size: 897 Bytes

Contents

Tasuku::Engine.routes.draw do
  resources :tasks, only: [:show]

  scope module: :taskables do
    resources :verifications, only: [] do
      scope module: :verifications do
        resources :confirmations, only: [:create]
      end
    end

    resources :questions, only: [] do
      scope module: :questions do
        resources :answers, only: [:create]
      end
    end

    namespace :image do
      resources :requests, only: [] do
        resources :responses, only: [:create]
      end
    end

    namespace :text do
      resources :requests, only:  [] do
        resources :responses, only: [:create]
      end
    end

    namespace :url do
      resources :requests, only: [] do
        resources :responses, only: [:create]
      end
    end

    namespace :code do
      resources :requests, only: [] do
        resources :responses, only: [:create]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tasuku-1.1.0 config/routes.rb
tasuku-1.0.1 config/routes.rb