Skip to content
Snippets Groups Projects
Commit 0eb8e3e8 authored by jkerdreu's avatar jkerdreu
Browse files

Added redirect to /devices/

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1652 b32b6428-25c9-4566-ad07-03861ab6144f
parent 53166752
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ from xaal.lib import tools,Engine,Device
from xaal.monitor import Monitor
import platform
from bottle import default_app,debug,get,response
from bottle import default_app,debug,get,response,redirect
import json
......@@ -44,7 +44,11 @@ def xaal_loop(engine):
while 1:
engine.loop()
@get('/')
def goto_list():
redirect('/devices/')
@get('/devices')
@get('/devices/')
def list_devices():
""" Return the list of devices in JSON"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment