@omerlo/omerlo-webkit 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -28,13 +28,13 @@ export function subscribeToTopic(f) {
|
|
|
28
28
|
return (params) => {
|
|
29
29
|
const body = { push_token: params.pushToken };
|
|
30
30
|
const opts = { method: 'post', body };
|
|
31
|
-
return request(f,
|
|
31
|
+
return request(f, `/topics/${params.topicId}/subscribe`, opts);
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export function unsubscribeFromTopic(f) {
|
|
35
35
|
return (params) => {
|
|
36
36
|
const body = { push_token: params.pushToken };
|
|
37
37
|
const opts = { method: 'post', body };
|
|
38
|
-
return request(f,
|
|
38
|
+
return request(f, `/topics/${params.topicId}/unsubscribe`, opts);
|
|
39
39
|
};
|
|
40
40
|
}
|