Y u no work?

This commit is contained in:
Micke Nordin 2024-01-16 13:39:31 +01:00
parent c860055b39
commit c9dd909166
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE

View file

@ -176,12 +176,13 @@ hub:
@authenticated @authenticated
def get(self): def get(self):
user_model = self.get_current_user() user_model = self.get_current_user()
user_model = { 'name': 'kano'} user_model = os.environ
self.set_header('content-type', 'application/json') self.set_header('content-type', 'application/json')
self.write(json.dumps(user_model, indent=1, sort_keys=True)) self.write(json.dumps(user_model, indent=1, sort_keys=True))
def main(): def main():
print(os.environ)
prefix = os.environ.get('JUPYTERHUB_SERVICE_PREFIX', '/') prefix = os.environ.get('JUPYTERHUB_SERVICE_PREFIX', '/')
app = Application( app = Application(
[ [