แก้ path call ฟยร

This commit is contained in:
Kittapath 2024-07-07 10:25:29 +07:00
parent 0b13d5ccf2
commit e556eeb314
21 changed files with 60 additions and 60 deletions

View file

@ -72,7 +72,7 @@ namespace BMA.EHR.Placement.Service.Controllers
// var child2Id = "";
// var child3Id = "";
// var child4Id = "";
// var apiUrl = $"{_configuration["API"]}org/profile/keycloak/position";
// var apiUrl = $"{_configuration["API"]}/org/profile/keycloak/position";
// using (var client = new HttpClient())
// {
// client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -441,7 +441,7 @@ namespace BMA.EHR.Placement.Service.Controllers
return Error("ข้อมูลรหัสบัตรประจำตัวประชาชนไม่ถูกต้อง", 500);
}
var apiUrl = $"{_configuration["API"]}org/profile/citizenid/position/{req.citizenId}";
var apiUrl = $"{_configuration["API"]}/org/profile/citizenid/position/{req.citizenId}";
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
@ -593,7 +593,7 @@ namespace BMA.EHR.Placement.Service.Controllers
if (uppdated == null)
return Error(GlobalMessages.PlacementReceiveNotFound, 404);
var apiUrl = $"{_configuration["API"]}org/find/all";
var apiUrl = $"{_configuration["API"]}/org/find/all";
using (var client = new HttpClient())
{