This commit is contained in:
Marek Lenczewski
2026-04-06 20:01:19 +02:00
parent 8ecef00d0a
commit 2f37d1b31f
4 changed files with 41 additions and 17 deletions

View File

@@ -1,11 +1,14 @@
package com.youtubeapp.data
import android.os.Build
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
object ApiClient {
// Server-IP hier anpassen
const val BASE_URL = "http://marha.local:8000/"
val BASE_URL: String = if (Build.FINGERPRINT.contains("generic") || Build.FINGERPRINT.contains("sdk"))
"http://10.0.2.2:8000/"
else
"http://marha.local:8000/"
val api: VideoApi by lazy {
Retrofit.Builder()