Skip to content
Snippets Groups Projects
Commit c813e049 authored by GOEPP THOMAS's avatar GOEPP THOMAS
Browse files

:twisted_rightwards_arrows: merge feat: change to api prod

Merge branch 'feature/144-url-in-env' into 'develop'
parents 21a6c858 8a33f599
Branches
1 merge request!139feat: change to api prod
Pipeline #325912 passed with stages
in 31 seconds
......@@ -37,9 +37,9 @@ export default function TabNavigator() {
} else if (route.name === "Community") {
iconName = "people";
}
// else if (route.name === "Multiplayer") {
// iconName = "diversity-2";
// }
else if (route.name === "Multiplayer") {
iconName = "diversity-2";
}
return <Icon name={iconName ?? ''} size={64} color={color} />;
},
})}
......
......@@ -62,7 +62,7 @@ export default function Lobby({navigation, route}: Props) {
}
console.log("User try to joined party with ID:", goodId);
const es = new EventSource<CustomEventType>(`https://klebert-host.com:33037/party/join/${goodId}`);
const es = new EventSource<CustomEventType>(`https://klebert-host.com:33036/party/join/${goodId}`);
setEsUseState(es);
es.addEventListener("gameStarted", async (event) => {
......
......@@ -3,7 +3,7 @@ import {QuestionResponse} from "../models/Response/QuestionResponse";
import HttpError from "./HttpError";
export const useMultiService = () => {
const url = "https://klebert-host.com:33037"
const url = "https://klebert-host.com:33036"
const createParty = async (quizId: string) : Promise<string | HttpError> => {
console.log("Create party with ID :", quizId);
......
......@@ -11,7 +11,7 @@ import {RunInformations} from "../models/RunInformations";
import {AllRunsResponse} from "../models/Response/AllRunsResponse";
export const useQuizService = () => {
const url = "https://klebert-host.com:33037"; // Remplace par l'URL de ton endpoint API
const url = "https://klebert-host.com:33036"; // Remplace par l'URL de ton endpoint API
const generateQuiz = async (amount: number, category: number, difficulty: string) : Promise<QuizGenerateAnswer | HttpError> => {
const requestBody = {
......
......@@ -6,7 +6,7 @@ import useCookie from "../hooks/UseCookie";
import {User} from "../models/User";
export const useUserService = () => {
const url = "https://klebert-host.com:33037";
const url = "https://klebert-host.com:33036";
const { saveCookie, removeCookie } = useCookie('access_token');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment