Skip to content

Commit

Permalink
Remove hardcoded localhost api base
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraWebdev committed Jan 11, 2025
1 parent 448de10 commit e8b235f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function onSoundtrackLoaded(loadedSoundtrack) {
async function onSoundtrackAddToQueue(queueItem) {
soundtrack.value = null;
let response = await fetch('http://localhost:8080/api/queue/add', {
let response = await fetch('/api/queue/add', {
method: "POST",
headers: {
'Content-Type': 'application/json'
Expand Down
6 changes: 3 additions & 3 deletions ui/src/components/SoundtrackQueue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,21 @@ onMounted(() => {
});
async function clearDone() {
let response = await fetch('http://localhost:8080/api/queue/clearDone');
let response = await fetch('/api/queue/clearDone');
let json = await response.json();
checkQueue();
}
async function retryFailed() {
let response = await fetch('http://localhost:8080/api/queue/retryFailed');
let response = await fetch('/api/queue/retryFailed');
let json = await response.json();
checkQueue();
}
async function checkQueue() {
let response = await fetch('http://localhost:8080/api/queue');
let response = await fetch('/api/queue');
let json = await response.json();
let data = json.data;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/lib/getSoundtrackMeta.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
async function getSoundtrackMeta(urlOrSlug) {
let response = await fetch("http://localhost:8080/api/soundtrack/", {
let response = await fetch("/api/soundtrack/", {
method: "POST",
headers: {
'Content-Type': 'application/json'
Expand Down

0 comments on commit e8b235f

Please sign in to comment.