Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
Reduce info to only location to try and reduce traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Dec 2, 2018
1 parent aa26514 commit 58bd704
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ipapi",
"version": "2.1.0",
"version": "3.0.0",
"description": "Placeholder package.json, this app is now written in Rust",
"main": "none.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ fn ip_request_handler(ip: IpAddr, reader: &maxminddb::Reader) -> Response {
.expect("Time went backwards");
return Response::json(&json!({
"ip": ip,
"geo": city,
"geo": city.location,
"time": timestamp.as_secs(),
"api_version": "2.0.0"
"api_version": "3.0.0"
})).with_unique_header("cache-control", "s-maxage=172800, maxage=0");
}
}
Expand Down

0 comments on commit 58bd704

Please sign in to comment.