rudemaps/server.py

12 lines
231 B
Python
Raw Normal View History

2017-02-08 21:35:33 +01:00
from bottle import route, run,template
@route('/')
2017-02-08 22:46:49 +01:00
def root():
return template('map_template', item="prova bind")
2017-02-08 21:35:33 +01:00
2017-02-08 22:46:49 +01:00
@route('/<item>')
2017-02-08 22:26:41 +01:00
def myName(item):
2017-02-08 22:46:49 +01:00
return template('map_template', item=item)
2017-02-08 21:35:33 +01:00
run(host='localhost', port=9093)