Source code for backend.globaleaks.handlers.redirect

# -*- coding: utf-8 -*-
#
# Handlers implementing special redirects
from globaleaks.handlers.base import BaseHandler


[docs]url_map = { '/admin': '/#/admin', '/login': '/#/login', '/submission': '/#/submission'
}
[docs]class SpecialRedirectHandler(BaseHandler): """ Handler that implements the platform special redirects """
[docs] check_roles = 'any'
[docs] def get(self, path): self.redirect(url_map[path])