| 4 | export const getEvent = (id) => fetchJson(`/db/event/${id}`) |
| 5 | export const getAllEvents = () => fetchJson('/db/events') |
| 6 | export const getEventsByUser = uid => fetchJson(`/db/events?userId=${uid}`) |
| 7 | |
| 8 | export const postEvent = (options = {}) => fetchJson('/db/event', _.assign({}, { |
| 9 | method: 'POST', |