Skip to content

Commit

Permalink
Changed localhost to server url
Browse files Browse the repository at this point in the history
  • Loading branch information
JoFlucki committed Mar 22, 2024
1 parent 3b5d923 commit 411c58f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
test:
deploy:
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/AddTournamentView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const addTournament = () => {
};
axios.post(
"http://localhost:8000/api/tournaments/ ",
"https://api-arconnect.k8s.ing.he-arc.ch/api/tournaments/ ",
data
).then(() => {
router.push({ name: "manageTournaments" })
Expand All @@ -31,7 +31,7 @@ const addTournament = () => {
<template>
<div class="grid-container">
<h1>Ajouter un tournoi</h1>
<form action="http://localhost:8000/api/tournaments/ " method="post" ref="form">
<form ref="form">
<Label for="name">Nom du tournoi :</Label>
<input id="name" type="text" name="name" placeholder="Free For All" v-model="name" required>

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/ManageTournamentsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const router = useRouter();
const tournaments = ref([]);
const fetchTournaments = async () => {
const res = await axios.get("http://localhost:8000/api/tournaments");
const res = await axios.get("https://api-arconnect.k8s.ing.he-arc.ch/api/tournaments");
tournaments.value = res.data;
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/TournamentDetailsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const tournamentId = route.params.tournamentId;
const tournament = ref(null);
const fetchTournament = async () => {
const res = await axios.get(`http://localhost:8000/api/tournaments/${tournamentId}`);
const res = await axios.get(`https://api-arconnect.k8s.ing.he-arc.ch/api/tournaments/${tournamentId}`);
tournament.value = res.data;
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/TournamentsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import TournamentPreview from '../components/TournamentPreview.vue';
const tournaments = ref([]);
const fetchTournaments = async () => {
const res = await axios.get("http://localhost:8000/api/tournaments");
const res = await axios.get("https://api-arconnect.k8s.ing.he-arc.ch/api/tournaments");
tournaments.value = res.data;
};
Expand Down

0 comments on commit 411c58f

Please sign in to comment.