//
//  BackendConfiguration.swift
//  TOZ_iOS
//
//  Copyright © 2017 intive. All rights reserved.
//

import Foundation
/**
 Class storing backend URL so other system elements know where to send requests to.
 */
final class BackendConfiguration {

    let baseURL: URL

    init(baseURL: URL) {
        self.baseURL = baseURL
    }

    static var shared: BackendConfiguration = BackendConfiguration(baseURL: URL(string: "http://dev.patronage2017.intive-projects.com")!)
}

//
//  BackendConfiguration.swift
//  TOZ_iOS
//
//  Copyright © 2017 intive. All rights reserved.
//

import Foundation
/**
 Class storing backend URL so other system elements know where to send requests to.
 */
final class BackendConfiguration {

    let baseURL: URL

    init(baseURL: URL) {
        self.baseURL = baseURL
    }

    static var shared: BackendConfiguration = BackendConfiguration(baseURL: URL(string: "http://dev.patronage2017.intive-projects.com/api")!)
}

Set new URL to backend
Set new URL to backend
