| 7 | * @return {Promise<Object>} raw Cutscene object |
| 8 | */ |
| 9 | export 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. |