Added flag/unflag related content routes

This commit is contained in:
María Checa
2017-12-18 13:26:22 +01:00
parent 97f74ac531
commit d944a88c63
2 changed files with 26 additions and 1 deletions

View File

@@ -462,7 +462,12 @@ Rails.application.routes.draw do
root to: "dashboard#index"
end
resources :related_contents, only: [:create]
resources :related_contents, only: [:create] do
member do
put :flag
put :unflag
end
end
# GraphQL
get '/graphql', to: 'graphql#query'