Skip to content

Commit

Permalink
Relative api path
Browse files Browse the repository at this point in the history
So the app can be mounted behind a /admin/ path
  • Loading branch information
stevenvegt committed Apr 9, 2021
1 parent a1ebae9 commit 8bc8269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/admin/Customers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
},
methods: {
fetchData() {
fetch("/api/customers")
fetch("api/customers")
.then(response => response.json())
.then(data => this.customers = data)
}
Expand Down

0 comments on commit 8bc8269

Please sign in to comment.