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