Rails Routes for API -


i trying create following routes

/plans /plans/:plan_id/notes /plans/:plan_id/notes/:id  /notes/:note_id/reply /notes/:note_id/upvote 

this route file

resources :plans, only: [:create, :index, :show]   resource :note, only: [:create]   resources :notes, only: [:destroy] end  resources :notes, only: [:index]   resource :note_replies, only: [:create, :destroy]   resources :note_upvotes, only: [:create, :destroy] end 

is there way remove duplication of routes created notes?


Comments