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

Function getCutscene

ozaria/site/api/cutscene.js:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 * @return {Promise<Object>} raw Cutscene object
8 */
9export const getCutscene = slugOrId => {
10 if (!slugOrId) {
11 throw new Error('No slugOrId supplied')
12 }
13 return fetchJson(`/db/cutscene/${slugOrId}`, { data: { cacheEdge: true } })
14}
15
16/**
17 * Returns a list of all cutscenes in the database by Name and slug.

Callers 1

fetchIntroContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected