zeyneplervesarp / swe574-javagang

3 stars 1 forks source link

axios delete doesn't work #147

Closed ecesari closed 2 years ago

ecesari commented 2 years ago

delete method on http.js doesn't work and returns a network error, this seems like a bug on axios request construction. the method of unfeature has been changed from being a delete endpoint to post endpoint

ZDenizYStenhaug commented 2 years ago

same with the delete service and delete user enpoints.

ecesari commented 2 years ago

same with the delete service and delete user enpoints.

@ZeynepDYilmaz if this is the bug mentioned in #133 that is another bug regarding the backend. This bug is about the endpoint not sending a request to the backend with the delete method.

ZDenizYStenhaug commented 2 years ago

@ecesari the bug mentioned in #133 is a different bug related to the db delete request.

ecesari commented 2 years ago

@ecesari the bug mentioned in #133 is a different bug related to the db delete request.

oh ok my bad

zynpgltkn commented 2 years ago

Resolved with this code

added allowed DELETE method to CORS config