Home > Software design >  Does the frontend HTTP request have to match the backend HTTP request, eg: axios.patch and express r
Does the frontend HTTP request have to match the backend HTTP request, eg: axios.patch and express r

Time:04-30

I have google searched, don't seem to find an answer to this. What is the difference between them, doing axios.patch(url) and then the express router router.patch(url).

CodePudding user response:

Yes. Whatever HTTP method you're specifying in your request should match whatever your backend expects to receive.

  • Related