mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
Fixing routes
This commit is contained in:
parent
4004c4fbcc
commit
ba110c7857
1 changed files with 9 additions and 2 deletions
|
|
@ -1,11 +1,18 @@
|
|||
HabitTracker::Application.routes.draw do
|
||||
resources :rewards
|
||||
|
||||
resources :habits do
|
||||
post :sort, on: :collection
|
||||
get :completed, on: :collection
|
||||
member do
|
||||
get 'vote'
|
||||
end
|
||||
end
|
||||
|
||||
resources :rewards do
|
||||
member do
|
||||
get 'buy'
|
||||
end
|
||||
end
|
||||
match 'habits/:id/vote' => 'habits#vote'
|
||||
|
||||
devise_for :users
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue