I am trying to make a PUT request to modify something in my MongoDB database
cambiar_pedido()
{
return this._http.put('http://localhost:4201/api/cambiar_pedido/7367208585/1232',{})
}
As an example I tried to use this function to make the respective change, however, although using EXACTLY the same URL in POSTMAN, it works great for me... In the real code it stops working, I'm using MEAN STACK.
All that was missing was to make the observable with its respective subscribe! wow!