Skip to content

Commit b8bf752

Browse files
committed
added - query by ip address
1 parent 153e7dd commit b8bf752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/src/main/java/com/androidfung/geoip/IpApiService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import retrofit2.Call;
66
import retrofit2.http.GET;
7+
import retrofit2.http.Path;
78

89
/**
910
* Created by funglam on 3/16/17.
@@ -14,5 +15,5 @@ public interface IpApiService {
1415
Call<GeoIpResponseModel> getGeoIp();
1516

1617
@GET("json/{ipAddress}")
17-
Call<GeoIpResponseModel> getGeoIp(String ipAddress);
18+
Call<GeoIpResponseModel> getGeoIp(@Path("ipAddress") String ipAddress);
1819
}

0 commit comments

Comments
 (0)