diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-02-22 00:47:34 +0100 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2021-02-22 00:47:34 +0100 |
commit | a079577ca21e16dd4b424eea28498f7b56a297df (patch) | |
tree | 8989e615271a9fd0fea2c24894801ee967896664 /app/src/main/java/xyz/adjutor/aniki/manga | |
parent | 56f69f774bc2a7ef645169f85b89934255c29cf9 (diff) |
API's now being called with an ID as a parameter.
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/manga')
-rw-r--r-- | app/src/main/java/xyz/adjutor/aniki/manga/MangaApi.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/manga/MangaApi.kt b/app/src/main/java/xyz/adjutor/aniki/manga/MangaApi.kt index 77304bb..419d510 100644 --- a/app/src/main/java/xyz/adjutor/aniki/manga/MangaApi.kt +++ b/app/src/main/java/xyz/adjutor/aniki/manga/MangaApi.kt @@ -2,10 +2,11 @@ package xyz.adjutor.aniki.manga import retrofit2.Call import retrofit2.http.GET +import retrofit2.http.Path interface MangaApi { - @GET("v3/manga/1") - fun getMangaData(): Call<RestMangaResponse> + @GET("v3/manga/{id}") + fun getMangaData(@Path("id") id: String): Call<RestMangaResponse> }
\ No newline at end of file |