mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Move BaseRedirect to webserve
This commit is contained in:
parent
cc05552685
commit
bde6309277
2 changed files with 15 additions and 19 deletions
|
@ -155,6 +155,18 @@ def mako_error_handler(context, error):
|
|||
raise
|
||||
|
||||
|
||||
class BaseRedirect(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT)
|
||||
|
||||
@cherrypy.expose
|
||||
def status(self, *args, **kwargs):
|
||||
path = '/' + '/'.join(args) if args else ''
|
||||
query = '?' + urlencode(kwargs) if kwargs else ''
|
||||
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT + 'status' + path + query)
|
||||
|
||||
|
||||
class WebInterface(object):
|
||||
|
||||
auth = AuthController()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue