Browse Source

Show a more helpful message at the root nilmdb path

tags/nilmdb-1.7.1
Jim Paris 8 years ago
parent
commit
a105543c38
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      nilmdb/server/server.py

+ 4
- 1
nilmdb/server/server.py View File

@@ -147,7 +147,10 @@ class Root(NilmApp):
# /
@cherrypy.expose
def index(self):
raise cherrypy.NotFound()
cherrypy.response.headers['Content-Type'] = 'text/plain'
msg = sprintf("This is NilmDB version %s, running on %s.\n",
nilmdb.__version__, socket.gethostname())
return msg

# /favicon.ico
@cherrypy.expose


Loading…
Cancel
Save