Skip to content
Snippets Groups Projects
Commit 986384d2 authored by Timothé Bailly-Barthez's avatar Timothé Bailly-Barthez
Browse files

change linkcs api url

parent 963a382b
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -13,7 +13,7 @@ myCache.on("expired", function (key, value) {
async function fetch_promotion_year(access_token) {
const url = "https://gateway.linkcs.fr/v1/graphql"
const url = "https://api.linkcs.fr/v1/graphql"
const headers = {Authorization: "Bearer " + access_token}
const query = '{me {promotion}}';
const request = await fetch(
......@@ -44,7 +44,7 @@ async function request_promotion(access_token, promotion, offset) {
console.log("Fetched from cache");
return {users:myCache.get(key), changed: false};
} else {
const url = "https://gateway.linkcs.fr/v1/graphql"
const url = "https://api.linkcs.fr/v1/graphql"
const headers = {Authorization: "Bearer " + access_token}
const query = '{getPromotion(promotion: ' + promotion + ', limit: 60, offset: ' + offset + ') {login, roles {sector {composition {association {id, name, type}}}}}}';
const request = await fetch(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment