benonymus
Elixir router resources does not find put and delete path
Hey I have this in my router
resources("/recordings", RecordingController)
and i have some auto generated code and the index and show is working nicely but the put and delete request are saying that they cannot find route, but if i put it explicitly like
put("/recordings", RecordingController, :update)
then it is workings nicely.
Why is that? isn’t that the point of resources do it all in one?
Most Liked
OvermindDL1
Yes, changing the put like that removes the required :id from the URL, but the error from postman was showing the case when the :id was very much required in the URL instead of the body. That’s the way the REST standards work if that is what you are trying to follow. If you are not following REST then probably shouldn’t be using resource. 
I’m personally a fan of GraphQL over REST myself.
benonymus
Alright, thank you!








