Source

pythonhk / src / pythonhk / controllers.py

from cherrypy._cperror import HTTPRedirect
try:
    import simplejson as json
except ImportError:
    import json

import cherrypy

from pythonhk import api

class Root(object):

    @cherrypy.expose
    def index(self):
        raise HTTPRedirect("/admin")


class AdminRoot(object):

    @cherrypy.expose
    def index(self):
        pass