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

19
src/api/explorer.js Normal file
View File

@@ -0,0 +1,19 @@
import Vue from 'vue';
async function getExplorerSections(page) {
return Vue.axios.get("/admin/explorer?page=" + (page - 1) + "&size=20");
}
async function updateExplorerSectionsOrders(firstOrders, ids) {
return Vue.axios.put('/admin/explorer/orders', { firstOrders: firstOrders, ids: ids })
}
async function createExplorerSection(item) {
return Vue.axios.post("/admin/explorer", item);
}
async function updateExplorerSection(item) {
return Vue.axios.put("/admin/explorer", item)
}
export { createExplorerSection, updateExplorerSection, getExplorerSections, updateExplorerSectionsOrders }