package de.tsschulz.tt_tagebuch.shared.api

import de.tsschulz.tt_tagebuch.shared.api.http.AuthedHttpClient
import de.tsschulz.tt_tagebuch.shared.api.models.SessionStatusResponse
import io.ktor.client.call.body
import io.ktor.client.request.get

class SessionApi(
    private val client: AuthedHttpClient,
) {
    suspend fun status(): SessionStatusResponse {
        return client.http.get("/api/session/status").body()
    }
}

