Merge branch 'main' of github.com:Frappet/bma-ehr-publish

This commit is contained in:
Kittapath 2023-12-25 16:59:51 +07:00
commit a81f7dec2c
2 changed files with 3 additions and 3 deletions

View file

@ -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',
},

View file

@ -10,7 +10,7 @@ export const apiUrlConfig = import.meta.env.VITE_API_PUBLISH_URL
const config = ref<any>({
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',