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

Function getByIdOrSlug

app/core/api/levels.js:20–23  ·  view source on GitHub ↗
(idOrSlug, options)

Source from the content-addressed store, hash-verified

18 },
19
20 getByIdOrSlug (idOrSlug, options) {
21 if (options == null) { options = {} }
22 return fetchJson(`/db/level/${idOrSlug}`, _.merge({}, options))
23 },
24
25 fetchForClassroom (classroomID, options = {}) {
26 return fetchJson(`/db/classroom/${classroomID}/levels`, _.merge({}, options))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected