Sha256: 65af6c71f942acdbf9a76f12b714e2c0ee5a9842fccda6652be2e82fea63822d

Contents?: true

Size: 1.53 KB

Versions: 6

Compression:

Stored size: 1.53 KB

Contents

get 'workflow' => 'workflow#index', as: :workflow

namespace 'workflow' do
  resources :project_owner, only: :index do
    collection do
      get 'tasks/:id/edit' => 'tasks#edit', as: :edit_task
    end
  end
  
  resources :user, only: :index do
    collection do    
      get 'products/:id' => 'products#show', as: :product
      get 'products/:product_id/areas/:id' => 'user/product/areas#show', as: :product_area
      
      get 'projects/:id' => 'user/projects#show', as: :user_project
      
      get 'stories/:story_id/tasks' => 'tasks#index', as: :tasks
      get 'stories/:story_id/tasks/next' => 'tasks#next', as: :next_task
      patch 'tasks/:id' => 'tasks#update', as: :update_task
      get 'tasks/:id/edit' => 'tasks#edit', as: :edit_task
          
      get 'tasks/:id/assign' => 'tasks#assign', as: :assign_task
      get 'tasks/:id/review' => 'tasks#review', as: :review_task
      get 'tasks/:id/unassign' => 'tasks#unassign', as: :unassign_task
      get 'tasks/:id/complete' => 'tasks#complete', as: :complete_task
    end
  end
  
  resources :vacancies, controller: 'vacancies', only: :index do
    collection do
      get '/' => 'vacancies#open', as: :open
      
      get :autocomplete
      
      get :open
      get :recommended
      get :denied
      get :closed
    end
  end
  
  resources :candidatures, controller: 'candidatures', only: :index do
    collection do
      get '/' => 'candidatures#new', as: :new
       
      get :autocomplete 
       
      get :new
      get :accepted
      get :denied
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voluntary-0.3.0 config/routes/workflow.rb
voluntary-0.2.4 config/routes/workflow.rb
voluntary-0.2.3 config/routes/workflow.rb
voluntary-0.2.2 config/routes/workflow.rb
voluntary-0.2.1 config/routes/workflow.rb
voluntary-0.2.0 config/routes/workflow.rb