Sha256: e2d7e2a2b18c98f060c05ab015834d8c30a44dfdab65ceb1f9271da56f77cac6

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 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' => 'user/stories#index', as: :stories
      get 'tasks/assigned' => 'user/tasks#assigned', as: :assigned_tasks
      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

4 entries across 4 versions & 1 rubygems

Version Path
voluntary-0.7.1 config/routes/workflow.rb
voluntary-0.7.0 config/routes/workflow.rb
voluntary-0.6.0 config/routes/workflow.rb
voluntary-0.5.2 config/routes/workflow.rb