about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-04-13 16:38:15 -0500
committerGitHub <noreply@github.com>2018-04-13 16:38:15 -0500
commitb7804028c2708c82cbb15037abe569519975ba9d (patch)
treea5cf9f9678172c658a9de4be3e8c31f3dc5bfa8c /config
parenta817f084eafaf5527445c29ab1d68f42b1a2872f (diff)
parentacb434b0c998353e9e39379ecab27f68df41a100 (diff)
Merge pull request #419 from ThibG/glitch-soc/features/bookmarks
Bookmarks
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
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