diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-04-10 22:13:15 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-04-11 20:40:29 +0200 |
commit | 50eb8f1f613df0a2379565f5f5eabd8acc110f15 (patch) | |
tree | 008492064435329839a8f29ddf4849e79c80803d /config | |
parent | 33c2bbdda7f94789dc0455711093ee788c64a531 (diff) |
Add backend support for bookmarks
Bookmarks behave like favourites, except they aren't shared with other users and do not have an associated counter.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 092a14f47..9d4aa00ed 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -224,6 +224,9 @@ Rails.application.routes.draw do resource :favourite, only: :create post :unfavourite, to: 'favourites#destroy' + resource :bookmark, only: :create + post :unbookmark, to: 'bookmarks#destroy' + resource :mute, only: :create post :unmute, to: 'mutes#destroy' @@ -259,6 +262,7 @@ Rails.application.routes.draw do end end resources :favourites, only: [:index] + resources :bookmarks, only: [:index] resources :reports, only: [:index, :create] namespace :apps do |