5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-14 15:30:28 +00:00
yggdrasil-map/web/web.py

20 lines
328 B
Python
Raw Normal View History

2014-03-19 09:12:47 +00:00
from flask import Flask, render_template, request
app = Flask(__name__)
2014-03-30 00:14:02 +00:00
app.debug = False
2014-03-19 09:12:47 +00:00
@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='::')