なんかもうめっちゃ変えた

Closes #940
This commit is contained in:
syuilo
2017-11-23 05:43:00 +09:00
parent 1809800980
commit 3f8ebac466
46 changed files with 244 additions and 225 deletions

View File

@ -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?) {

View File

@ -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 = {