#init
This commit is contained in:
19
src/servives/TicketApi.js
Normal file
19
src/servives/TicketApi.js
Normal 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();
|
||||
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user