Connect Real API of qualify exam and cms info

This commit is contained in:
schooltechx 2023-04-09 14:39:23 +07:00
parent acfe81c58a
commit f536b6e2e9
15 changed files with 34 additions and 31 deletions

View file

@ -33,7 +33,7 @@
<div class="w-full lg:w-6/12 px-4">
<div class=" mb-4">
<div class="w-12 rounded-full">
<img src="{logo_url}" alt="logo">
<img src={logo_url?logo_url:'/images/logo.png'} alt="logo">
</div>
</div>
<h5 class="text-2xl font-semibold">{title}</h5>

View file

@ -2,7 +2,6 @@
export let logo_url:string = "/images/logo.png"
export let title:string = "ใส่ชื่อองค์กรที่นี้"
export let supervised:string = "ใส่สังกัดที่นี้"
</script>
<div class="navbar bg-white w-full top-0 z-50 fixed flex-wrap items-center justify-between px-4 ">
@ -14,7 +13,7 @@
<div class="content-center grid">
<div class="avatar">
<div class="w-10 rounded-full">
<img src="{logo_url}" alt="logo">
<img src={logo_url?logo_url:'/images/logo.png'} alt="logo">
</div>
</div>
</div>

View file

@ -30,4 +30,6 @@ export interface CMSInfo{
divisions:{title:string,url:string}[];
institutes:{title:string,url:string}[];
}
export const apibase="/api"
export const cmsBase="https://bma-ehr-exam.frappet.synology.me/api/v1/cms"
export const competitiveBase="/api"
export const qualifyingBase="https://bma-ehr-exam.frappet.synology.me/api/v1/cms"