Refactor of service

This commit is contained in:
Mieszko 2018-08-26 13:11:20 +02:00
parent 5116828ca3
commit 5eea1133b9
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public class MainActivity extends AppCompatActivity {
Coordinates service = RetrofitClientInstance.createService(Coordinates.class,authToken);
Call<List<Coordinate>> call = service.getTopCoordinates(authToken);
Call<List<Coordinate>> call = service.getTopCoordinates();
call.enqueue(new Callback<List<Coordinate>>() {

View File

@ -30,7 +30,7 @@ public interface Coordinates {
Call<List<Coordinate>> getTopCoordinatesByUserId(@Path("userId") String userId , @Header("Authorization") JwtToken token);
@GET("api/coordinates/top")
Call<List<Coordinate>> getTopCoordinates(@Header("Authorization") String auth);
Call<List<Coordinate>> getTopCoordinates();
@GET("api/coordinates/top/online")
Call<List<Coordinate>> getOnlineCoordinates(@Header("Authorization") JwtToken token);