Added flag/unflag related content routes
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user