Constants.swift 833 Bytes
//
//  Constant.swift
//  InterQR-Internship
//
//  Created by Дмитрий Тимофеев on 25.06.2022.
//

import Foundation

struct Constants {
    enum APIRoutes {
        case initURL
        case startURL
        case verifyURL
        case loginURL
        case logoutURL
        
        var urlString: String {
            switch self {
            case .initURL:
                return "https://www.interqr.com/api/init"
            case .startURL:
                return "https://www.interqr.com/api/twofa/start"
            case .verifyURL:
                return "https://www.interqr.com/api/twofa/verify"
            case .loginURL:
                return "https://www.interqr.com/api/login"
            case .logoutURL:
                return "https://www.interqr.com/api/logout"
            }
        }
    }
}