mirror of
https://github.com/stellarshenson/stellars-jupyterhub-ds.git
synced 2026-03-07 21:50:28 +00:00
fix: change credentials endpoint from /api/users to /api/admin
This commit is contained in:
@@ -367,7 +367,7 @@ if c is not None:
|
||||
(r'/api/users/([^/]+)/manage-volumes', ManageVolumesHandler),
|
||||
(r'/api/users/([^/]+)/restart-server', RestartServerHandler),
|
||||
(r'/api/notifications/broadcast', BroadcastNotificationHandler),
|
||||
(r'/api/users/credentials', GetUserCredentialsHandler),
|
||||
(r'/api/admin/credentials', GetUserCredentialsHandler),
|
||||
(r'/notifications', NotificationsPageHandler),
|
||||
]
|
||||
|
||||
|
||||
@@ -477,7 +477,7 @@ class GetUserCredentialsHandler(BaseHandler):
|
||||
"""
|
||||
Retrieve cached credentials for newly created users (admin only)
|
||||
|
||||
POST /hub/api/users/credentials
|
||||
POST /hub/api/admin/credentials
|
||||
Body: {"usernames": ["user1", "user2", ...]}
|
||||
Returns: {"credentials": [{"username": "...", "password": "..."}, ...]}
|
||||
"""
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
console.log('[Admin] Fetching credentials for:', usernames);
|
||||
|
||||
try {
|
||||
const response = await originalFetch(`${baseUrl}api/users/credentials`, {
|
||||
const response = await originalFetch(`${baseUrl}api/admin/credentials`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user