Merge branch 'react-error-handling' of github.com:naatebarber/jupyterhub into react-error-handling

This commit is contained in:
Nathan Barber
2021-12-01 01:52:59 -05:00
8 changed files with 10 additions and 11 deletions

View File

@@ -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"),