14 lines
275 B
JavaScript
14 lines
275 B
JavaScript
import Axios from 'axios';
|
|
|
|
export default {
|
|
|
|
// get all pages with a certain parent (can be empty)
|
|
getChildren(parent)
|
|
{
|
|
return Axios.get('pageTree/getChildren', {
|
|
params: {
|
|
parent: parent
|
|
}
|
|
}).then(res => Promise.resolve(res.data));
|
|
}
|
|
}; |