5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-09 23:00:26 +00:00
yggdrasil-map/web/web.py
2014-03-30 02:14:02 +02:00

20 lines
328 B
Python

from flask import Flask, render_template, request
app = Flask(__name__)
app.debug = False
@app.context_processor
def add_ip():
return dict(ip=request.environ['REMOTE_ADDR'])
@app.route('/')
@app.route('/network')
def page_network():
return render_template('network.html')
if __name__ == '__main__':
app.run(host='::')