Sha256: 6693adf74412318a3b0e75563a7cc1d1e35dbfe8a25af623d55122373607a41a

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
voluntary-0.5.1 config/routes/workflow.rb
voluntary-0.5.0 config/routes/workflow.rb
voluntary-0.4.0 config/routes/workflow.rb