feat: update API paths to v1 and remove old path references for consistency
This commit is contained in:
No files matched your search
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user