Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
fix(mixins): new api url
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuwn committed Mar 8, 2022
1 parent eda6521 commit b624b24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mixins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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())
Expand All @@ -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())
Expand Down

0 comments on commit b624b24

Please sign in to comment.