Skip to content
Snippets Groups Projects
Commit 7f325497 authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

fix wrong url

parent 0030efef
No related branches found
No related tags found
1 merge request!128Admin page guard
...@@ -17,7 +17,7 @@ class UserService { ...@@ -17,7 +17,7 @@ class UserService {
async getAdminList() { async getAdminList() {
return await axios return await axios
.get(API_URL + "/communities/admin", { .get(API_URL + "communities/admin", {
headers: tokenHeader(), headers: tokenHeader(),
}) })
.then((res) => { .then((res) => {
...@@ -42,14 +42,14 @@ class UserService { ...@@ -42,14 +42,14 @@ class UserService {
async setListingToDeleted(listingId) { async setListingToDeleted(listingId) {
return await axios return await axios
.delete(API_URL + "listing/" + listingId, { .delete(API_URL + "listing/" + listingId, {
headers: tokenHeader() headers: tokenHeader(),
}) })
.then((res) => { .then((res) => {
return res.data; return res.data;
}) })
.catch((err) => { .catch((err) => {
console.error(err); console.error(err);
}) });
} }
async getRenterHistory() { async getRenterHistory() {
......
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