Browse Source

Base url changed

v0.17
Dibya 1 year ago
parent
commit
cce0fb7f3b
  1. 12
      GME Remit/APIs/Router/APIRouter.swift
  2. 2
      GME Remit/APIs/UrlManager.swift

12
GME Remit/APIs/Router/APIRouter.swift

@ -487,13 +487,11 @@ extension APIRouter {
switch self {
case .uploadProfile:
let userId = GMEDB.shared.user.string(.senderId) ?? ""
return "https://sandboxapi.japanremit.com:8083/api/v5/mobile/\(userId)/UpdateCustomerProfile"
return "\(baseUrlWithoutVersion)v5/mobile/\(userId)/UpdateCustomerProfile"
case .accesscode:
// return "\(baseUrl)/users/access-code"
return "https://sandboxapi.japanremit.com:8083/api/v1/users/access-code"
return "\(baseUrl)/users/access-code"
case .customerProfile:
// return "\(baseUrl)/mobile/CustomerProfile"
return "https://sandboxapi.japanremit.com:8083/api/v5/mobile/DashBoardV2"
return "\(baseUrlWithoutVersion)v5/mobile/DashBoardV2"
case .requestOTP:
return "\(baseUrl)/mobile/requestOTP"
case .submitOTP:
@ -507,7 +505,6 @@ extension APIRouter {
case .oldUserAccessRequest:
return "\(baseUrlWithoutVersion)v1/mobile/oldUserAccessRequest"
case .countriesServices:
// return "https://sandboxapi.japanremit.com:8083/mobile/countriesServices"
return "\(baseUrl)/mobile/countriesServices"
case .calculateDefExRate:
return "\(baseUrl)/mobile/calculateDefExRate"
@ -515,8 +512,7 @@ extension APIRouter {
let path = "\(username)/dynamicField?countryId=\(countryID)&serviceType=\(serviceType)"
return "\(baseUrlWithoutVersion)v3/mobile/receiver/\(path)"
case .fetchRecipients(let senderID):
// return "\(baseUrlWithoutVersion)v3/mobile/\(senderID)/receiverinfo"
return "https://sandboxapi.japanremit.com:8083/api/v5/mobile/\(senderID)/receiverinfo/151"
return "\(baseUrlWithoutVersion)v5/mobile/\(senderID)/receiverinfo/151"
case .fetchCountriesAndServiceTypes(let username):
return "\(baseUrlWithoutVersion)v3/mobile/\(username)/FetchCountriesAndServiceTypes"
case .addRecipient(let senderID, _):

2
GME Remit/APIs/UrlManager.swift

@ -17,7 +17,7 @@ class UrlManager {
let baseSocialURL = ""
let liveServerUrl = "https://mobile.japanremit.com:8443/api/"
let liveServerUrl = "https://sandboxapi.japanremit.com:8083/api/" // "https://mobile.japanremit.com:8443/api/"
let testUrl = "http://202.166.220.36:8083/api/"
init() {

Loading…
Cancel
Save