mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-11 03:52:59 +00:00
Merge branch 'react-error-handling' of github.com:naatebarber/jupyterhub into react-error-handling
This commit is contained in:
@@ -7,10 +7,9 @@ const withAPI = withProps(() => ({
|
||||
data.json()
|
||||
),
|
||||
updateGroups: (offset, limit) =>
|
||||
jhapiRequest(
|
||||
`/groups?offset=${offset}&limit=${limit}`,
|
||||
"GET"
|
||||
).then((data) => data.json()),
|
||||
jhapiRequest(`/groups?offset=${offset}&limit=${limit}`, "GET").then(
|
||||
(data) => data.json()
|
||||
),
|
||||
shutdownHub: () => jhapiRequest("/shutdown", "POST"),
|
||||
startServer: (name) => jhapiRequest("/users/" + name + "/server", "POST"),
|
||||
stopServer: (name) => jhapiRequest("/users/" + name + "/server", "DELETE"),
|
||||
|
Reference in New Issue
Block a user