Fix: refactor upload API url
This commit is contained in:
@@ -6,8 +6,7 @@ import { handleActionSave,} from '~/handlers/supporting-document.handler'
|
|||||||
import { toast } from '~/components/pub/ui/toast'
|
import { toast } from '~/components/pub/ui/toast'
|
||||||
import Confirmation from '~/components/pub/my-ui/confirmation/confirmation.vue'
|
import Confirmation from '~/components/pub/my-ui/confirmation/confirmation.vue'
|
||||||
import { DocumentUploadSchema } from '~/schemas/document-upload.schema'
|
import { DocumentUploadSchema } from '~/schemas/document-upload.schema'
|
||||||
import { uploadAttachment } from '~/services/supporting-document.service'
|
import { toFormData } from '~/lib/utils'
|
||||||
import { printFormData, toFormData } from '~/lib/utils'
|
|
||||||
|
|
||||||
// #region Props & Emits
|
// #region Props & Emits
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
import * as base from './_crud-base'
|
import * as base from './_crud-base'
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
import { encounterClassCodes, uploadCode, type UploadCodeKey } from '~/lib/constants'
|
import { uploadCode, type UploadCodeKey } from '~/lib/constants'
|
||||||
|
|
||||||
const path = '/api/v1/encounter-document'
|
const path = '/api/v1/encounter-document'
|
||||||
const create_path = '/api/v1/upload'
|
const create_path = '/api/v1/upload-file'
|
||||||
const name = 'encounter-document'
|
const name = 'encounter-document'
|
||||||
|
|
||||||
export function create(data: any) {
|
export function create(data: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user