Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const REGISTER_ENDPOINT = 'https://us-central1-proofspelling.cloudfunctions.net/push/register'
- export default {
- register: (userId, pushId, groups) => {
- return fetch(REGISTER_ENDPOINT, {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- body: {
- userId,
- pushId,
- groups
- }
- })
- }
- }
Add Comment
Please, Sign In to add comment