aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-08 02:53:47 -0800
committerFuwn <[email protected]>2022-03-08 02:53:47 -0800
commita49e83b5060f119806c1855a0f74e5ed978089e8 (patch)
tree71cafa85c93a106b0eb567d36044eda381961e8f /src
parentMerge pull request #12 from senpy-club/renovate/lint-staged-11.x (diff)
downloadfrontend-a49e83b5060f119806c1855a0f74e5ed978089e8.tar.xz
frontend-a49e83b5060f119806c1855a0f74e5ed978089e8.zip
fix(mixins): api url
Diffstat (limited to 'src')
-rw-r--r--src/mixins.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mixins.ts b/src/mixins.ts
index b0445a1..0f062d6 100644
--- a/src/mixins.ts
+++ b/src/mixins.ts
@@ -12,10 +12,10 @@ export default class APIExtendableLanguage extends Vue {
random: any;
- private baseUrl = 'https://senpy-api.herokuapp.com/api/v1/';
+ private baseUrl = 'https://senpy-club-api-worker.fuwn.workers.dev/v1';
async fetchImages(): Promise<void> {
- fetch(`${this.baseUrl}language?lang=${this.language}`, {
+ fetch(`${this.baseUrl}/language/${this.language}`, {
method: 'GET',
})
.then((response) => response.json())
@@ -26,7 +26,7 @@ export default class APIExtendableLanguage extends Vue {
}
async fetchLanguages(): Promise<void> {
- fetch(`${this.baseUrl}languages`, {
+ fetch(`${this.baseUrl}/languages`, {
method: 'GET',
})
.then((response) => response.json())
@@ -37,7 +37,7 @@ export default class APIExtendableLanguage extends Vue {
}
async fetchRandom(): Promise<void> {
- fetch(`${this.baseUrl}random`, {
+ fetch(`${this.baseUrl}/random`, {
method: 'GET',
})
.then((response) => response.json())