19 lines
473 B
JavaScript
19 lines
473 B
JavaScript
import { createCoreApp } from "./createCoreApp"
|
|
import { getNew, getNewChild } from "../../../core/src/recordApi/getNew"
|
|
import { constructHierarchy } from "../../../core/src/templateApi/createNodes"
|
|
|
|
export const createCoreApi = (backendDefinition, user) => {
|
|
const app = createCoreApp(backendDefinition, user)
|
|
|
|
return {
|
|
recordApi: {
|
|
getNew: getNew(app),
|
|
getNewChild: getNewChild(app),
|
|
},
|
|
|
|
templateApi: {
|
|
constructHierarchy,
|
|
},
|
|
}
|
|
}
|