Interface SAV

This commit is contained in:
Jonathan Chevalier
2023-06-13 18:24:39 +02:00
parent 46f85fbd52
commit 99f565f4aa
5 changed files with 125 additions and 41 deletions

17
src/services/TicketApi.js Normal file
View File

@@ -0,0 +1,17 @@
export default {
async getTickets() {
const apiUrl = '/App/api.php?prj=pharmamp'
if (import.meta.env.DEV) {
console.log(apiUrl)
}
const response = await fetch(apiUrl)
if (import.meta.env.DEV) {
console.log(response.clone().text())
}
return response.json();
}
}