parent
1809800980
commit
3f8ebac466
46 changed files with 244 additions and 225 deletions
|
|
@ -4,7 +4,11 @@ import Subscription from '../models/sw-subscription';
|
|||
import config from '../../conf';
|
||||
|
||||
if (config.sw) {
|
||||
push.setGCMAPIKey(config.sw.gcm_api_key);
|
||||
// アプリケーションの連絡先と、サーバーサイドの鍵ペアの情報を登録
|
||||
push.setVapidDetails(
|
||||
config.maintainer.url,
|
||||
config.sw.public_key,
|
||||
config.sw.private_key);
|
||||
}
|
||||
|
||||
export default async function(userId: mongo.ObjectID | string, type, body?) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue