diff options
author | Andinus <andinus@nand.sh> | 2022-02-05 09:39:29 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2022-02-05 09:39:29 +0530 |
commit | ca4514ac276827ffdb99a1cbf3b27633e73656f2 (patch) | |
tree | 0f4651308b4d6af5160ad3b865ee2d2faa9565cd /client | |
parent | 29e02de7747dc2944328fb6052942e7c590ea7f5 (diff) | |
download | vela-ca4514ac276827ffdb99a1cbf3b27633e73656f2.tar.gz |
Quick fix in `service.raku' -- Probably should just use the normal router mode instead of this.
Diffstat (limited to 'client')
-rw-r--r-- | client/src/views/CreateSmiles.vue | 2 | ||||
-rw-r--r-- | client/src/views/GetSmile.vue | 2 | ||||
-rw-r--r-- | client/src/views/ManageSmiles.vue | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/client/src/views/CreateSmiles.vue b/client/src/views/CreateSmiles.vue index 88da1f4..ddcdd3a 100644 --- a/client/src/views/CreateSmiles.vue +++ b/client/src/views/CreateSmiles.vue @@ -104,7 +104,7 @@ export default { const toast = this.$toast; this.showProgress = true; - fetch('http://localhost:9090/create', { + fetch('./create', { method: 'POST', cache: 'no-cache', headers: { 'Content-Type': 'application/json' }, diff --git a/client/src/views/GetSmile.vue b/client/src/views/GetSmile.vue index 8d565ec..9db405a 100644 --- a/client/src/views/GetSmile.vue +++ b/client/src/views/GetSmile.vue @@ -41,7 +41,7 @@ export default { this.showLoading = true; fetch( - `http://localhost:9090/smile/${this.id}`, + `../smile/${this.id}`, { cache: 'no-cache', referrerPolicy: 'no-referrer', responseType: 'blob' } ).then(response => { if (response.status === 404) diff --git a/client/src/views/ManageSmiles.vue b/client/src/views/ManageSmiles.vue index 370b908..70c9e6b 100644 --- a/client/src/views/ManageSmiles.vue +++ b/client/src/views/ManageSmiles.vue @@ -26,7 +26,7 @@ </div> <div class="col-12 md:col-6"> <FileUpload @error="onError" @before-send="beforeSend" @upload="onUpload" - name="images" url="http://localhost:9090/upload" + name="images" url="../../upload" :multiple="true" accept="image/*" :maxFileSize="2097152"> <!-- 1024 * 1024 * 2 --> <template #empty> @@ -102,7 +102,7 @@ export default { const toast = this.$toast; this.showLoading = true; - fetch('http://localhost:9090/verify', { + fetch('../../verify', { method: 'POST', cache: 'no-cache', headers: { 'Content-Type': 'application/json' }, |