TOKEN_STORE=postgres, else 503).
Behaviours: cowboy_handler, trails_handler.
Device-token registration (needs TOKEN_STORE=postgres, else 503).
POST /v1/tokens — register or refresh a token:{"user_id", "token", "provider": "fcm"|"apns_voip",
"platform", "device_id", "app_version", "voip_token"}.voip_token is a convenience for iOS apps registering their
FCM and PushKit tokens in one call (stored as two rows).DELETE /v1/tokens — {"user_id", "token"} (logout).user_id: expose them only
behind your own authenticated backend, or set API_KEY.
| init/2 | |
| trails/0 |
init(Req0, State) -> any()
trails() -> any()
Generated by EDoc