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

Function getEvent

app/core/api/events.js:4–4  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

2import _ from 'lodash'
3
4export const getEvent = (id) => fetchJson(`/db/event/${id}`)
5export const getAllEvents = () => fetchJson('/db/events')
6export const getEventsByUser = uid => fetchJson(`/db/events?userId=${uid}`)
7

Callers 1

fetchEventFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected