Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.js
More file actions
Latest commit
32 lines (28 loc) · 928 Bytes
/
Copy pathcontroller.js
File metadata and controls
32 lines (28 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
constkProofServiceWorkerVersionID=Date.now().toString();
constOLSKServiceWorker=require('./node_modules/OLSKServiceWorker/main.js');
exports.OLSKControllerRoutes=function(){
return[{
OLSKRoutePath: '/',
OLSKRouteMethod: 'get',
OLSKRouteSignature: 'RSEncryptProofRoute',
OLSKRouteFunction(req,res,next){
returnres.OLSKExpressLayoutRender(require('path').join(__dirname,'stub-view'));
},
OLSKRouteLanguageCodes: ['en'],
},{
OLSKRoutePath: '/sw.js',
OLSKRouteMethod: 'get',
OLSKRouteSignature: 'ZeroDataProofServiceWorkerRoute',
OLSKRouteFunction(req,res,next){
returnres.type('js').send(OLSKServiceWorker.OLSKServiceWorkerView({
VERSION_ID_TOKEN: kProofServiceWorkerVersionID,
ORIGIN_PAGE_PATH_TOKEN: res.locals.OLSKCanonical('RSEncryptProofRoute'),
}));
},
}];
};
exports.OLSKControllerSharedStaticAssetFolders=function(){
return[
'node_modules',
];
};