import Foundation

/// Backend base URLs. The iOS Simulator shares the host network, so `localhost` reaches services
/// running on the dev machine. In production a single API gateway fronts these.
struct APIConfig {
    let auth: URL
    let fleet: URL
    let booking: URL
    let wallet: URL
    let payment: URL
    let zone: URL

    static let local = APIConfig(
        auth: URL(string: "http://localhost:8081")!,
        fleet: URL(string: "http://localhost:8082")!,
        booking: URL(string: "http://localhost:8084")!,
        wallet: URL(string: "http://localhost:8085")!,
        payment: URL(string: "http://localhost:8086")!,
        zone: URL(string: "http://localhost:8087")!
    )
}
