From 81694cc3bfd40a679c3a0a9fcf3284b515414549 Mon Sep 17 00:00:00 2001 From: gio Date: Wed, 8 Feb 2017 22:46:49 +0100 Subject: [PATCH] studio --- server.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/server.py b/server.py index dd36e0c..443a7e5 100644 --- a/server.py +++ b/server.py @@ -1,20 +1,12 @@ from bottle import route, run,template @route('/') -@route('/myapp') -@route('/myapp/') -def myApp(): - return template('map_template', item=item) +def root(): + return template('map_template', item="prova bind") - -@route('/myapp/') +@route('/') def myName(item): - return template('map_template', item=item) + return template('map_template', item=item) -@route('/myapp/favourite/') -@route('/myapp/favourite/') -def favourite(item): - return template('favourite_template', item=item) - run(host='localhost', port=9093) \ No newline at end of file