diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/MainActivity.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/MainActivity.java index 6c8011b..1032282 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/activity/MainActivity.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/MainActivity.java @@ -30,7 +30,7 @@ public class MainActivity extends AppCompatActivity { Coordinates service = RetrofitClientInstance.createService(Coordinates.class,authToken); - Call> call = service.getTopCoordinates(authToken); + Call> call = service.getTopCoordinates(); call.enqueue(new Callback>() { diff --git a/app/src/main/java/com/uam/wmi/findmytutor/service/Coordinates.java b/app/src/main/java/com/uam/wmi/findmytutor/service/Coordinates.java index f4d6960..48f84a5 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/service/Coordinates.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/service/Coordinates.java @@ -30,7 +30,7 @@ public interface Coordinates { Call> getTopCoordinatesByUserId(@Path("userId") String userId , @Header("Authorization") JwtToken token); @GET("api/coordinates/top") - Call> getTopCoordinates(@Header("Authorization") String auth); + Call> getTopCoordinates(); @GET("api/coordinates/top/online") Call> getOnlineCoordinates(@Header("Authorization") JwtToken token);