Spaces:
Running
Running
Commit
·
31cc3df
1
Parent(s):
ba42d2b
Update main.py
Browse files
main.py
CHANGED
@@ -9,6 +9,7 @@ def get_ipaddr():
|
|
9 |
return request.access_route[0]
|
10 |
else:
|
11 |
return request.remote_addr or '127.0.0.1'
|
|
|
12 |
@app.route("/ping", methods=["GET"])
|
13 |
def index():
|
14 |
return jsonify(pong=get_ipaddr())
|
|
|
9 |
return request.access_route[0]
|
10 |
else:
|
11 |
return request.remote_addr or '127.0.0.1'
|
12 |
+
|
13 |
@app.route("/ping", methods=["GET"])
|
14 |
def index():
|
15 |
return jsonify(pong=get_ipaddr())
|