first gql request, displaying concernements as a liste

This commit is contained in:
2022-10-18 13:41:06 +02:00
parent 38958d20dd
commit 20b56f27f1
13 changed files with 527 additions and 1238 deletions

View File

@@ -0,0 +1,25 @@
fragment ConcernementFields on Concernement {
id
texte
title
recit {
file {
fid
filename
url
filemime
filesize
}
description
}
author
entites {
menacemaintien
prise
actuelfuture
entite {
title
id
}
}
}

View File

@@ -6,7 +6,7 @@ import axios from 'axios'
console.log(window.location)
const MGQ = axios.create({
baseURL: `${window.location.origin}/api/mgq`,
baseURL: `${window.location.origin}/api/gql`,
withCredentials: true,
headers: {
Accept: 'application/json',