콘텐츠 카테고리 API 추가
This commit is contained in:
@@ -4,12 +4,12 @@ async function saveCategory(title) {
|
||||
return Vue.axios.post('/category', {title: title, contentIdList: []});
|
||||
}
|
||||
|
||||
async function modifyCategory(title, categoryId) {
|
||||
async function modifyCategory(categoryId, title = null, addContentIdList = [], removeContentIdList = []) {
|
||||
return Vue.axios.put('/category', {
|
||||
categoryId: categoryId,
|
||||
title: title,
|
||||
addContentIdList: [],
|
||||
removeContentIdList: []
|
||||
addContentIdList: addContentIdList,
|
||||
removeContentIdList: removeContentIdList
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user