Update app.py
This commit is contained in:
parent
d80d8fd6ac
commit
a5412391d4
1 changed files with 8 additions and 0 deletions
8
app.py
8
app.py
|
|
@ -59,6 +59,14 @@ def get_ip_version_from_ip(target):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return 'ipv4'
|
return 'ipv4'
|
||||||
|
|
||||||
|
@app.route("/ping")
|
||||||
|
def ping():
|
||||||
|
return "pong"
|
||||||
|
|
||||||
|
@app.errorhandler(404)
|
||||||
|
def page_not_found(e):
|
||||||
|
return render_template("404.html"), 404
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
return render_template('looking_glass.html')
|
return render_template('looking_glass.html')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue