You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
408 B
19 lines
408 B
|
11 months ago
|
import baseService from "./baseService"
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @returns {Promise<Array>}
|
||
|
|
*/
|
||
|
|
export async function getSkillTree() {
|
||
|
|
const { items } = await baseService.getCollection("/api/skills/tree")
|
||
|
|
|
||
|
|
return items
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param {Object} searchParams
|
||
|
|
* @returns {Promise<{totalItems, items}>}
|
||
|
|
*/
|
||
|
|
export async function findAll(searchParams) {
|
||
|
|
return await baseService.getCollection("api/skills", searchParams)
|
||
|
|
}
|