mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 02:07:01 +05:30
api: add support for fetching newest posts
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
5c7f38c2dc
commit
1d8c4a42a8
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ interface LobstersApi {
|
|||
@GET("hottest.json")
|
||||
suspend fun getHottestPosts(@Query("page") page: Int): List<LobstersPost>
|
||||
|
||||
@GET("newest.json")
|
||||
suspend fun getNewestPosts(@Query("page") page: Int): List<LobstersPost>
|
||||
|
||||
companion object {
|
||||
const val BASE_URL = "https://lobste.rs"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue