You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1011 B
40 lines
1011 B
//
|
|
// UrlManager.swift
|
|
// GMERemittance
|
|
//
|
|
// Created by Sujal on 12/25/17.
|
|
// Copyright © 2017 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class UrlManager {
|
|
static let sharedInstance = UrlManager()
|
|
|
|
var version = "v1"
|
|
|
|
var baseURL = ""
|
|
|
|
let baseSocialURL = ""
|
|
|
|
let oldUatServer = "http://gmeuat.gmeremit.com:5012/api/v1/"
|
|
let staggingServerUrl = "http://gmeuat.gmeremit.com:5022/api/"
|
|
let liveServerUrl = "https://mobileapi.gmeremit.com:8002/api/"
|
|
let uatServer = "http://gmeuat.gmeremit.com:5012/api/"
|
|
|
|
init() {
|
|
switch server {
|
|
case .uat:
|
|
self.baseURL = uatServer
|
|
case .staging:
|
|
self.baseURL = staggingServerUrl
|
|
case .live:
|
|
self.baseURL = liveServerUrl
|
|
case .uat2:
|
|
self.baseURL = "http://gmeuat.gmeremit.com:5018/api/"
|
|
case .kftcTest:
|
|
self.baseURL = "http://gmeuat.gmeremit.com:5008/api/"
|
|
}
|
|
}
|
|
|
|
}
|