first commit
This commit is contained in:
19
src/api/explorer.js
Normal file
19
src/api/explorer.js
Normal 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 }
|
||||
Reference in New Issue
Block a user