first commit

This commit is contained in:
Yu Sung
2023-08-04 23:02:15 +09:00
commit c60930a566
83 changed files with 38615 additions and 0 deletions

27
src/api/event.js Normal file
View File

@@ -0,0 +1,27 @@
import Vue from 'vue';
async function save(formData) {
return Vue.axios.post('/event', formData, {
headers: {
"Content-Type": "multipart/form-data",
},
});
}
async function modify(formData) {
return Vue.axios.put('/event', formData, {
headers: {
"Content-Type": "multipart/form-data",
},
});
}
async function deleteEvent(id) {
return Vue.axios.delete("/event/" + id)
}
async function getEvents() {
return Vue.axios.get("/event")
}
export {save, modify, deleteEvent, getEvents}