aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/views')
-rw-r--r--src/frontend/views/Home.vue2
-rw-r--r--src/frontend/views/RepositoryCommit.vue2
-rw-r--r--src/frontend/views/RepositoryLog.vue2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/views/Home.vue b/src/frontend/views/Home.vue
index 79ec4ab..9ee5c02 100644
--- a/src/frontend/views/Home.vue
+++ b/src/frontend/views/Home.vue
@@ -47,7 +47,7 @@ export default {
watch(() =>
{
- fetch(`http://localhost:1337/api/v1/repos`)
+ fetch(`${window.location.protocol}//${window.location.host}/api/v1/repos`)
.then((res) => res.json())
.then((data) => state.projects = data["data"]);
});
diff --git a/src/frontend/views/RepositoryCommit.vue b/src/frontend/views/RepositoryCommit.vue
index 283ed69..9554de7 100644
--- a/src/frontend/views/RepositoryCommit.vue
+++ b/src/frontend/views/RepositoryCommit.vue
@@ -80,7 +80,7 @@ export default {
watch(() =>
{
- fetch(`http://localhost:1337/api/v1/repos/${props.repository}/log/${props.commit}`)
+ fetch(`${window.location.protocol}//${window.location.host}/api/v1/repos/${props.repository}/log/${props.commit}`)
.then((res) => res.json())
.then((data) =>
{
diff --git a/src/frontend/views/RepositoryLog.vue b/src/frontend/views/RepositoryLog.vue
index 399fc78..42a9780 100644
--- a/src/frontend/views/RepositoryLog.vue
+++ b/src/frontend/views/RepositoryLog.vue
@@ -75,7 +75,7 @@ export default {
watch(() =>
{
- fetch(`http://localhost:1337/api/v1/repos/${props.repository}/log`)
+ fetch(`${window.location.protocol}//${window.location.host}/api/v1/repos/${props.repository}/log`)
.then((res) => res.json())
.then((data) => {
state.commits = data["data"];