Skip to content

Commit

Permalink
Updated user unfollow and itemshop buying endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaK2905 committed Nov 14, 2024
1 parent ea996e4 commit c06fa07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/org/hackillinois/android/API.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ interface API {
suspend fun shop(): List<ShopItem>

@POST("shop/item/buy/")
suspend fun buyShopItem(@Body body: ItemInstance): ItemName
suspend fun buyShopItem(@Body body: ItemInstance): List<ShopItem>

// STAFF

Expand All @@ -89,8 +89,8 @@ interface API {
@PUT("user/follow/")
fun followEvent(@Body eventId: EventId): Call<FavoritesResponse>

@PUT("user/unfollow/")
fun unfollowEvent(@Body eventId: EventId): Call<FavoritesResponse>
@DELETE("user/unfollow/{eventId}")
fun unfollowEvent(@Path("eventId") eventId: EventId): Call<FavoritesResponse>

@GET("user/v2-qr/")
suspend fun qrCode(): QR
Expand Down

0 comments on commit c06fa07

Please sign in to comment.