mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 23:00:31 +05:30
15 lines
421 B
Kotlin
15 lines
421 B
Kotlin
|
package xyz.btcland.libretube
|
||
|
|
||
|
import retrofit2.http.GET
|
||
|
import retrofit2.http.Path
|
||
|
import retrofit2.http.Query
|
||
|
import xyz.btcland.libretube.obj.StreamItem
|
||
|
import xyz.btcland.libretube.obj.Streams
|
||
|
|
||
|
interface PipedApi {
|
||
|
@GET("trending")
|
||
|
suspend fun getTrending(@Query("region") region: String): List<StreamItem>
|
||
|
|
||
|
@GET("streams/{videoId}")
|
||
|
suspend fun getStreams(@Path("videoId") videoId: String): Streams
|
||
|
}
|