9fc34a7d5e
This reverts commit d4033c32c4.
15 lines
307 B
JavaScript
15 lines
307 B
JavaScript
import Axios from 'axios';
|
|
|
|
export default {
|
|
|
|
// get all pages with a certain parent (can be empty)
|
|
getChildren(parent, active)
|
|
{
|
|
return Axios.get('pageTree/getChildren', {
|
|
params: {
|
|
parent: parent,
|
|
active: active
|
|
}
|
|
}).then(res => Promise.resolve(res.data));
|
|
}
|
|
}; |