fix(api): adapt to new user endpoint

This commit is contained in:
Harsh Shandilya 2023-09-01 04:05:07 +05:30
parent c279765386
commit c87f6a4239
No known key found for this signature in database

View file

@ -26,7 +26,7 @@ interface LobstersApi {
@GET("s/{postId}.json")
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>
companion object {