mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 01:47:03 +05:30
fix(api): correct usage of @Query
feature in search API
This commit is contained in:
parent
127a0674a2
commit
cf3ca27966
1 changed files with 2 additions and 2 deletions
|
@ -12,9 +12,9 @@ import retrofit2.http.GET
|
||||||
import retrofit2.http.Query
|
import retrofit2.http.Query
|
||||||
|
|
||||||
interface LobstersSearchApi {
|
interface LobstersSearchApi {
|
||||||
@GET("/search?q={query}&what=stories&order=newest&page={page}")
|
@GET("/search?what=stories&order=newest")
|
||||||
suspend fun searchPosts(
|
suspend fun searchPosts(
|
||||||
@Query("query") searchQuery: String,
|
@Query("q") searchQuery: String,
|
||||||
@Query("page") page: Int,
|
@Query("page") page: Int,
|
||||||
): ApiResult<List<LobstersPost>, Unit>
|
): ApiResult<List<LobstersPost>, Unit>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue