mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 17:37:05 +05:30
fix(api): adapt to new user endpoint
This commit is contained in:
parent
c279765386
commit
c87f6a4239
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ interface LobstersApi {
|
||||||
@GET("s/{postId}.json")
|
@GET("s/{postId}.json")
|
||||||
suspend fun getPostDetails(@Path("postId") postId: String): ApiResult<LobstersPostDetails, Unit>
|
suspend fun getPostDetails(@Path("postId") postId: String): ApiResult<LobstersPostDetails, Unit>
|
||||||
|
|
||||||
@GET("u/{username}.json")
|
@GET("~{username}.json")
|
||||||
suspend fun getUser(@Path("username") username: String): ApiResult<User, Unit>
|
suspend fun getUser(@Path("username") username: String): ApiResult<User, Unit>
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue