store and use notifications token
This commit is contained in:
parent
5ee048a568
commit
c18f71c548
27 changed files with 564 additions and 28 deletions
|
|
@ -672,6 +672,12 @@ service LightningPub {
|
|||
option (http_route) = "/api/user/http_creds";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc EnrollMessagingToken(structs.MessagingToken) returns (structs.Empty){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/messaging/enroll";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc BatchUser(structs.Empty) returns (structs.Empty){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
|
|
|
|||
|
|
@ -806,4 +806,7 @@ message ProvidersDisruption {
|
|||
repeated ProviderDisruption disruptions = 1;
|
||||
}
|
||||
|
||||
|
||||
message MessagingToken {
|
||||
string device_id = 1;
|
||||
string firebase_messaging_token = 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue