Project initialize
This commit is contained in:
21
config/routes.rb
Normal file
21
config/routes.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
Rails.application.routes.draw do
|
||||
devise_for :users
|
||||
|
||||
resources :departments do
|
||||
member do
|
||||
get :tasks
|
||||
end
|
||||
end
|
||||
|
||||
resources :tasks do
|
||||
member do
|
||||
patch :assign
|
||||
end
|
||||
end
|
||||
|
||||
root 'tasks#index'
|
||||
|
||||
# Add some useful routes for dashboard
|
||||
get 'dashboard', to: 'tasks#dashboard'
|
||||
get 'my_tasks', to: 'tasks#my_tasks'
|
||||
end
|
||||
Reference in New Issue
Block a user