+ core service; config update

This commit is contained in:
tmshv committed 2016-03-23 12:48:04 +03:00
1 parent 499ecad952
commit 96daac15ba
2 files changed
+10 -4

No files matched your search

+2 -4
View File
@@ -21,10 +21,6 @@ const config = {
prerenderToken: '', prerenderToken: '',
protocol: 'https', protocol: 'https',
host: 'art.shlisselburg.org' host: 'art.shlisselburg.org'
},
instagram: {
secret: ''
} }
}; };
@@ -51,3 +47,5 @@ export const protocol = 'https://';
export const homeUrl = protocol + host; export const homeUrl = protocol + host;
export const sitemapCacheTime = 600000;// 600 sec - cache purge period export const sitemapCacheTime = 600000;// 600 sec - cache purge period
export const instagramToken = privateData['instagramToken'];
+8
View File
@@ -0,0 +1,8 @@
import {instagramToken} from '../config';
const services = {
instagram: instagramToken
};
export const checkAuth = (name, token) => name in services && services[name] === token;