t&e
This commit is contained in:
parent
03788c1eb0
commit
bd55a67e49
|
@ -173,9 +173,8 @@ hub:
|
||||||
|
|
||||||
|
|
||||||
class RefreshHandler(HubAuthenticated, RequestHandler):
|
class RefreshHandler(HubAuthenticated, RequestHandler):
|
||||||
@authenticated
|
# @authenticated
|
||||||
def get(self):
|
def get(self):
|
||||||
print(os.environ)
|
|
||||||
user_model = self.get_current_user()
|
user_model = self.get_current_user()
|
||||||
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))
|
||||||
|
@ -191,7 +190,6 @@ hub:
|
||||||
)
|
)
|
||||||
|
|
||||||
http_server = HTTPServer(app)
|
http_server = HTTPServer(app)
|
||||||
print(os.environ)
|
|
||||||
url = urlparse(os.environ['JUPYTERHUB_SERVICE_URL'])
|
url = urlparse(os.environ['JUPYTERHUB_SERVICE_URL'])
|
||||||
|
|
||||||
http_server.listen(url.port, reuse_port=True)
|
http_server.listen(url.port, reuse_port=True)
|
||||||
|
|
Loading…
Reference in a new issue