23 lines
596 B
Kotlin
23 lines
596 B
Kotlin
package auth.data.remote.api
|
|
|
|
import auth.data.remote.dto.AuthRequest
|
|
import auth.data.remote.dto.AuthResponse
|
|
import core.domain.model.ServerConfigModel
|
|
import retrofit2.http.Body
|
|
import retrofit2.http.GET
|
|
import retrofit2.http.POST
|
|
|
|
interface AuthApi {
|
|
@POST("auth/login")
|
|
suspend fun login(@Body request: AuthRequest): AuthResponse
|
|
|
|
@POST("auth/register")
|
|
suspend fun register(@Body request: AuthRequest): AuthResponse
|
|
|
|
@GET("config")
|
|
suspend fun getConfig(): ServerConfigModel
|
|
|
|
@POST("auth/push-token")
|
|
suspend fun updatePushToken(@Body token: String): Unit
|
|
}
|