Feedback-Window
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 50s

This commit is contained in:
Torsten Schulz (local)
2026-06-09 07:57:36 +02:00
parent f0142d5682
commit 16465fafc8
9 changed files with 208 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
package de.tsschulz.tt_tagebuch.shared.api
import de.tsschulz.tt_tagebuch.shared.api.http.AuthedHttpClient
import io.ktor.client.request.post
import io.ktor.client.request.setBody
import kotlinx.serialization.Serializable
@Serializable
data class MobileFeedbackBody(
val message: String,
val screen: String,
val clubId: Int? = null,
val appVersion: String = "",
val platform: String = "Android",
val backendBaseUrl: String = "",
)
class FeedbackApi(
private val client: AuthedHttpClient,
) {
suspend fun send(body: MobileFeedbackBody) {
client.http.post("/api/mobile-feedback") {
setBody(body)
}
}
}