feat: update API paths to v1 and remove old path references for consistency

This commit is contained in:
riefive
2025-12-02 11:06:48 +07:00
parent be3f5c9d40
commit 297e16eaee
14 changed files with 15 additions and 41 deletions

No files matched your search

+1 -3
View File
@@ -2,12 +2,10 @@
import * as base from './_crud-base'
const path = '/api/v1/reference/unit'
const pathOld = '/api/vclaim/v1/reference/unit'
const name = 'unit'
export function getList(params: any = null) {
const isNew = true
let url = !isNew ? pathOld : path
let url = path
if (params?.unitCode) {
url += `/${params.unitCode}`
delete params.unitCode