Use new endpoint to retrieve statuses

This commit is contained in:
TwinProduction
2021-08-21 21:24:05 -04:00
parent 82d697b032
commit 0e7f1d19f4
5 changed files with 5 additions and 5 deletions

View File

@ -104,7 +104,7 @@ export default {
methods: {
fetchData() {
//console.log("[Details][fetchData] Fetching data");
fetch(`${this.serverUrl}/api/v1/statuses/${this.$route.params.key}?page=${this.currentPage}`)
fetch(`${this.serverUrl}/api/v1/services/${this.$route.params.key}/statuses?page=${this.currentPage}`)
.then(response => response.json())
.then(data => {
if (JSON.stringify(this.serviceStatus) !== JSON.stringify(data)) {

View File

@ -26,7 +26,7 @@ export default {
methods: {
fetchData() {
//console.log("[Home][fetchData] Fetching data");
fetch(`${SERVER_URL}/api/v1/statuses?page=${this.currentPage}`)
fetch(`${SERVER_URL}/api/v1/services/statuses?page=${this.currentPage}`)
.then(response => response.json())
.then(data => {
if (JSON.stringify(this.serviceStatuses) !== JSON.stringify(data)) {