mirror of
https://github.com/faiztyanirh/clqms-shadcn-v1.git
synced 2026-04-24 10:08:07 +07:00
18 lines
556 B
JavaScript
18 lines
556 B
JavaScript
import { API } from '$lib/config/api.js';
|
|
import { getById, searchWithParams, create, update } from '$lib/api/api-client';
|
|
|
|
export async function getTestMaps(searchQuery) {
|
|
return await searchWithParams(API.TESTMAP, searchQuery)
|
|
}
|
|
|
|
export async function getTestMap(searchQuery) {
|
|
return await getById(API.TESTMAP, searchQuery)
|
|
}
|
|
|
|
export async function createTestMap(newTestMapForm) {
|
|
return await create(API.TESTMAP, newTestMapForm)
|
|
}
|
|
|
|
export async function editTestMap(editTestMapForm, id) {
|
|
return await update(API.TESTMAP, editTestMapForm, id)
|
|
} |