Skip to content
Snippets Groups Projects
Commit d0e4d422 authored by henrikburmann's avatar henrikburmann
Browse files

Deletemapping in deleteListing

parent f2bea68f
No related branches found
No related tags found
1 merge request!123Delete listing
...@@ -29,7 +29,7 @@ class UserService { ...@@ -29,7 +29,7 @@ class UserService {
async setListingToDeleted(listingId) { async setListingToDeleted(listingId) {
console.log(tokenHeader()); console.log(tokenHeader());
return await axios return await axios
.put(API_URL + "listing/" + listingId, null, { .delete(API_URL + "listing/" + listingId, {
headers: tokenHeader() headers: tokenHeader()
}) })
.then((res) => { .then((res) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment