MCPcopy Create free account
hub / github.com/codecombat/codecombat / createNewResourceHubResource

Function createNewResourceHubResource

app/core/api/resource_hub_resource.js:7–11  ·  view source on GitHub ↗
({ name, ...opts }, options = {})

Source from the content-addressed store, hash-verified

5 * @async
6 */
7export const createNewResourceHubResource = ({ name, ...opts }, options = {}) =>
8 fetchJson('/db/resource_hub_resource', _.assign({}, options, {
9 method: 'POST',
10 json: { name, ...opts }
11 }))
12
13export const getResourceHubResources = () => fetchJson('/db/resource_hub_resource')
14

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected