@ -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?) {
|
||||
|
@ -9,7 +9,7 @@ import generateUserToken from '../common/generate-native-user-token';
|
||||
import config from '../../conf';
|
||||
|
||||
recaptcha.init({
|
||||
secret_key: config.recaptcha.secretKey
|
||||
secret_key: config.recaptcha.secret_key
|
||||
});
|
||||
|
||||
const home = {
|
||||
|
Reference in New Issue
Block a user