+ core service; config update
This commit is contained in:
1 parent
499ecad952
commit
96daac15ba
2 files changed
+10
-4
No files matched your search
+2
-4
@@ -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'];
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import {instagramToken} from '../config';
|
||||||
|
|
||||||
|
const services = {
|
||||||
|
instagram: instagramToken
|
||||||
|
};
|
||||||
|
|
||||||
|
export const checkAuth = (name, token) => name in services && services[name] === token;
|
||||||
|
|
||||||
Reference in new issue
Block a user