The tutorial uses json-server, which, by default, expects PATCH requests to go to a specific player's URL, not the top-level URL for all players. I haven't played with the tutorial myself, so the following may not be 100% accurate, but I think that you need to:
1. Give each player an ID field, and call that field "id". 2. When you perform the patch, the URL should be http://localhost:3000/db/plrs/<id>. That is, the ID should be the final part of the URL. (I'm not sure about the first part of the URL; your example is not quite consistent with the json-server documentation.) On Sunday, November 19, 2017 at 5:35:53 AM UTC-5, David Legard wrote: > > I'm testing it on *localhost*. > > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
