This commit is contained in:
2023-05-23 20:50:56 +02:00
commit cec011e414
16 changed files with 2600 additions and 0 deletions

19
src/servives/TicketApi.js Normal file
View File

@@ -0,0 +1,19 @@
export default {
async getNew() {
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();
},
}