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

Function postEvent

app/core/api/events.js:8–11  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

6export const getEventsByUser = uid => fetchJson(`/db/events?userId=${uid}`)
7
8export const postEvent = (options = {}) => fetchJson('/db/event', _.assign({}, {
9 method: 'POST',
10 json: options
11}))
12
13export const updateEvent = (id, options = {}) => fetchJson(`/db/event/${id}`, _.assign({}, {
14 method: 'PUT',

Callers 1

saveEventFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected