studio
This commit is contained in:
parent
8cad260eee
commit
81694cc3bf
1 changed files with 4 additions and 12 deletions
16
server.py
16
server.py
|
@ -1,20 +1,12 @@
|
||||||
from bottle import route, run,template
|
from bottle import route, run,template
|
||||||
|
|
||||||
@route('/')
|
@route('/')
|
||||||
@route('/myapp')
|
def root():
|
||||||
@route('/myapp/')
|
return template('map_template', item="prova bind")
|
||||||
def myApp():
|
|
||||||
return template('map_template', item=item)
|
|
||||||
|
|
||||||
|
@route('/<item>')
|
||||||
@route('/myapp/<item>')
|
|
||||||
def myName(item):
|
def myName(item):
|
||||||
return template('map_template', item=item)
|
return template('map_template', item=item)
|
||||||
|
|
||||||
|
|
||||||
@route('/myapp/favourite/')
|
|
||||||
@route('/myapp/favourite/<item>')
|
|
||||||
def favourite(item):
|
|
||||||
return template('favourite_template', item=item)
|
|
||||||
|
|
||||||
run(host='localhost', port=9093)
|
run(host='localhost', port=9093)
|
Loading…
Reference in a new issue