first gql request, displaying concernements as a liste
This commit is contained in:
25
src/api/gql/concernement.fragment.gql
Normal file
25
src/api/gql/concernement.fragment.gql
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user