aboutsummaryrefslogtreecommitdiff
path: root/iosApp/iosApp/iOSApp.swift
blob: cbc2ffd34657c2b92b363c5b83a7c16b4ca2acd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import SwiftUI
import shared

@main
struct iOSApp: App {
    let defaultServer = "https://etbsa.net/"
    
    var sessionApi: SessionApi
    var usersApi: UsersApi
    var devicesApi: DevicesApi
    var positionsApi: PositionsApi
    var commandsApi: CommandsApi
    var reportsApi: ReportsApi
    var geofencesApi: GeofencesApi
    
    init() {
        sessionApi = SessionApi(defaultBaseUrl: defaultServer)
        usersApi = UsersApi(defaultBaseUrl: defaultServer)
        devicesApi = DevicesApi(defaultBaseUrl: defaultServer)
        positionsApi = PositionsApi(defaultBaseUrl: defaultServer)
        commandsApi = CommandsApi(defaultBaseUrl: defaultServer)
        reportsApi = ReportsApi(defaultBaseUrl: defaultServer)
        geofencesApi = GeofencesApi(defaultBaseUrl: defaultServer)
    }
    
	var body: some Scene {
		WindowGroup {
			LoginContainerView()
		}
	}
}