This commit is contained in:
Micke Nordin 2024-01-16 16:58:29 +01:00
parent 4ce23f0acc
commit 1f40dde46e
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE

View file

@ -223,6 +223,7 @@ hub:
@authenticated @authenticated
def get(self): def get(self):
app_log.debug("DEBUG: In auth get")
user_model = self.get_current_user() user_model = self.get_current_user()
user_model = {'helloooooo': 'hej'} user_model = {'helloooooo': 'hej'}
self.set_header('content-type', 'application/json') self.set_header('content-type', 'application/json')
@ -231,11 +232,13 @@ hub:
class PingHandler(RequestHandler): class PingHandler(RequestHandler):
def get(self): def get(self):
app_log.debug("DEBUG: In get")
self.set_header('content-type', 'application/json') self.set_header('content-type', 'application/json')
self.write(json.dumps({'ping': 1})) self.write(json.dumps({'ping': 1}))
def main(): def main():
app_log.debug("DEBUG: In main")
tornado.options.parse_command_line() tornado.options.parse_command_line()
app = Application([ app = Application([
(os.environ['JUPYTERHUB_SERVICE_PREFIX'] + 'tokens', RefreshHandler), (os.environ['JUPYTERHUB_SERVICE_PREFIX'] + 'tokens', RefreshHandler),