From b74948ff0d7840d51408a604eeb1899c9609907e Mon Sep 17 00:00:00 2001 From: waruneeta Date: Sat, 23 Dec 2023 22:14:23 +0700 Subject: [PATCH] no message --- src/api/document.ts | 4 ++-- src/api/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/document.ts b/src/api/document.ts index a3cc4c7..5f92111 100644 --- a/src/api/document.ts +++ b/src/api/document.ts @@ -2,7 +2,7 @@ import type { StorageFile } from '@/interface/response/storage' import config from "@/api"; export async function getDocumentList(volume: string, id: string) { - const res = await fetch(`${config.API_URI}/document/${volume}/${id}`, { + const res = await fetch(`${config.API_URI}/evaluation/document/${volume}/${id}`, { headers: { Accept: 'application/json', }, @@ -19,7 +19,7 @@ export async function getDocumentInfo( id: string, file: string ) { - const res = await fetch(`${config.API_URI}/document/${volume}/${id}/${file}`, { + const res = await fetch(`${config.API_URI}/evaluation/document/${volume}/${id}/${file}`, { headers: { Accept: 'application/json', }, diff --git a/src/api/index.ts b/src/api/index.ts index 0603dfe..1a28e27 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -10,14 +10,14 @@ export const apiUrlConfig = import.meta.env.VITE_API_URI_CONFIG const config = ref({ development: { // API_URI: "https://localhost:7260/api", - API_URI: 'https://bma-ehr.frappet.synology.me/api/v1/evaluation', + API_URI: 'https://bma-ehr.frappet.synology.me/api/v1', }, test: { API_URI: 'http://localhost:5010/api/v1', }, production: { // API_URI: "https://localhost:5010", - API_URI: 'https://bma-ehr.frappet.synology.me/api/v1/evaluation', + API_URI: apiUrlConfig, }, })