Skip to content

Commit

Permalink
Sun Jun 17 01:24:33 IST 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekbalam committed Jun 16, 2018
1 parent 2d25eb0 commit 64a7a11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ def main():
@app.route('/locate/<ip>')
def lookup(ip):
data=requests.get('http://ip-api.com/json/'+ip).content
return data
return jsonify(data)

@app.route('/mine')
def mine():
data=requests.get('http://ip-api.com/json/'+request.remote_addr).content
return data
return jsonify(data)

if __name__ == '__main__':
app.jinja_env.auto_reload = True
Expand Down

0 comments on commit 64a7a11

Please sign in to comment.