(analytics-callback-handler {:keys [analytics-store callback-secret
refuse-legacy-callback-tokens?]}
request)(api-routes deps)Every route but the callback requires a signed-in user, which the platform
enforces. The callback is public: a device posts it, and the HMAC in its body
is the credential (BOU-568). The device routes act on the caller's own
devices; the stats ask :push/read. Contributed as :api, so served under
/api/v1; flat, so each path gets its unversioned redirect.
Every route but the callback requires a signed-in user, which the platform enforces. The callback is public: a device posts it, and the HMAC in its body is the credential (BOU-568). The device routes act on the caller's own devices; the stats ask `:push/read`. Contributed as `:api`, so served under `/api/v1`; flat, so each path gets its unversioned redirect.
(push-routes deps)Deprecated: the module mounts api-routes itself. The same routes as one
/api/push vector, for apps that mounted it by hand.
Deprecated: the module mounts `api-routes` itself. The same routes as one `/api/push` vector, for apps that mounted it by hand.
(unregister-device-handler {:keys [device-store device-removal?] :as deps}
request)Removes the caller's registrations of the token in reach: another tenant's
is not this request's to remove (BOU-990). A store without IDeviceRemoval
removes the token everywhere, so it answers 409 when that reaches further.
Removes the caller's registrations of the token in reach: another tenant's is not this request's to remove (BOU-990). A store without `IDeviceRemoval` removes the token everywhere, so it answers 409 when that reaches further.
(with-capabilities {:keys [device-store] :as deps})deps with what its device store implements beyond IDeviceTokenStore,
asked once when the routes are built (Convention 5).
`deps` with what its device store implements beyond IDeviceTokenStore, asked once when the routes are built (Convention 5).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |