I want to have an Image controller and allow single endpoint such as:
/images/upload
but disable all the other default ones.
resources :images, only: [] do
 collection do
  post "upload"
 end
end
This is my current approach that does the job, but is it the right one? Is there some sort of :none keyword to disable default routes? Or should i not use resources and do it some other way?
 
     
    