2017-02-08 21:35:33 +01:00
|
|
|
from bottle import route, run,template
|
|
|
|
|
|
|
|
@route('/')
|
|
|
|
@route('/myapp')
|
|
|
|
@route('/myapp/')
|
|
|
|
def myApp():
|
2017-02-08 22:26:41 +01:00
|
|
|
return template('map_template', item=item)
|
2017-02-08 21:35:33 +01:00
|
|
|
|
|
|
|
|
2017-02-08 22:26:41 +01:00
|
|
|
@route('/myapp/<item>')
|
|
|
|
def myName(item):
|
|
|
|
return template('map_template', item=item)
|
2017-02-08 21:35:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
@route('/myapp/favourite/')
|
|
|
|
@route('/myapp/favourite/<item>')
|
|
|
|
def favourite(item):
|
|
|
|
return template('favourite_template', item=item)
|
|
|
|
|
|
|
|
run(host='localhost', port=9093)
|