Skip to content

Commit f7554c1

Browse files
committed
fix: change api endpoint
1 parent c88a726 commit f7554c1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/requests.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ let proxyURL = null;
33
let activeTripObj;
44
let currentRequestTry = 0;
55

6-
const GIRA_GRAPHQL_ENDPOINT = "https://c2g091p01.emel.pt/api/graphql";
76
const GIRA_GRAPHQL_WS_ENDPOINT = "wss://c2g091p01.emel.pt/ws/graphql";
7+
// const GIRA_GRAPHQL_ENDPOINT = "https://c2g091p01.emel.pt/api/graphql";
8+
// This works, don't ask why
9+
const GIRA_GRAPHQL_ENDPOINT = GIRA_GRAPHQL_WS_ENDPOINT.replace("wss://", "https://");
810
const GIRA_AUTH_ENDPOINT = "https://api-auth.emel.pt/auth";
911
const GIRA_TOKEN_REFRESH_ENDPOINT = "https://api-auth.emel.pt/token/refresh";
1012
const GIRA_USER_ENDPOINT = "https://api-auth.emel.pt/user";

0 commit comments

Comments
 (0)