package de.tsschulz.tt_tagebuch.shared.api

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

class TrainingStatsApi(
    private val client: AuthedHttpClient,
) {
    suspend fun getStats(clubId: Int): TrainingStats {
        return client.http.get("/api/training-stats/$clubId").body()
    }
}

