summaryrefslogtreecommitdiffstats
path: root/module/web/WebServer.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/WebServer.py')
-rw-r--r--module/web/WebServer.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/module/web/WebServer.py b/module/web/WebServer.py
index d2bf9b3a8..ad0d03512 100644
--- a/module/web/WebServer.py
+++ b/module/web/WebServer.py
@@ -39,9 +39,16 @@ core = None
PATH = "./module/web/"
+@route('/', method= 'POST')
+def home():
+ #print request.GET
+ print request.POST
+
+ return template('default', page='home', links=core.get_downloads())
+
@route('/')
-def hello_world():
- return template('default', string=str(core.get_downloads()))
+def login():
+ return template('default', page='login')
@route('/favicon.ico')
def favicon():
@@ -67,4 +74,4 @@ class WebServer(threading.Thread):
bottle.TEMPLATE_PATH.append('./module/web/templates/%s.tpl')
def run(self):
- run(host='localhost', port=8080) \ No newline at end of file
+ run(host='localhost', port=int(self.core.config['webinterface']['port'])) \ No newline at end of file