Allow RfC index action for exercises to be nested

This commit is contained in:
Sebastian Serth
2023-10-22 19:12:14 +02:00
committed by Sebastian Serth
parent 5ecde8c8bd
commit bbee854002
5 changed files with 11 additions and 6 deletions

View File

@ -27,7 +27,7 @@ Rails.application.routes.draw do
resources :comments, defaults: {format: :json}
get '/my_request_for_comments', as: 'my_request_for_comments', to: 'request_for_comments#my_comment_requests'
get '/my_rfc_activity', as: 'my_rfc_activity', to: 'request_for_comments#rfcs_with_my_comments'
get '/exercises/:exercise_id/request_for_comments', as: 'rfcs_for_exercise', to: 'request_for_comments#rfcs_for_exercise'
get '/exercises/:exercise_id/request_for_comments', as: 'exercise_request_for_comments', to: 'request_for_comments#rfcs_for_exercise'
delete '/comment_by_id', to: 'comments#destroy_by_id'
put '/comments', to: 'comments#update', defaults: {format: :json}