angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 231 forks source link

PUT override not getting executed #225

Closed mayhew3 closed 5 years ago

mayhew3 commented 5 years ago

I've been wracking my brain for hours, but can't figure this one out. I've added a simple override for both GET and PUT protocols that just print to the log and return undefined, to allow the default behavior. When I call http.get() this override is getting hit, but when I call http.put(), it is not.

There's not a lot of documentation around the requirements to hook this up correctly, aside from implementing a method with signature put(RequestInfo), and I'm not sure how else to debug why it's not getting called.

Link to my source. Pretty basic start of project. Just trying to update a single field on one of the two tables.

mayhew3 commented 5 years ago

Never mind. Apparently I neglected to subscribe to the put() request, and it did nothing.