mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 04:23:01 +00:00
Re-lint withAPI
This commit is contained in:
@@ -7,9 +7,10 @@ const withAPI = withProps(() => ({
|
|||||||
data.json()
|
data.json()
|
||||||
),
|
),
|
||||||
updateGroups: (offset, limit) =>
|
updateGroups: (offset, limit) =>
|
||||||
jhapiRequest(`/groups?offset=${offset}&limit=${limit}`, "GET").then(
|
jhapiRequest(
|
||||||
(data) => data.json()
|
`/groups?offset=${offset}&limit=${limit}`,
|
||||||
),
|
"GET"
|
||||||
|
).then((data) => data.json()),
|
||||||
shutdownHub: () => jhapiRequest("/shutdown", "POST"),
|
shutdownHub: () => jhapiRequest("/shutdown", "POST"),
|
||||||
startServer: (name) => jhapiRequest("/users/" + name + "/server", "POST"),
|
startServer: (name) => jhapiRequest("/users/" + name + "/server", "POST"),
|
||||||
stopServer: (name) => jhapiRequest("/users/" + name + "/server", "DELETE"),
|
stopServer: (name) => jhapiRequest("/users/" + name + "/server", "DELETE"),
|
||||||
|
Reference in New Issue
Block a user