...
|
...
|
@@ -95,7 +95,7 @@ const render = (route) => { |
|
|
return async(req, res, next) => {
|
|
|
try {
|
|
|
res.setHeader('X-YOHO-Version', pkg.version);
|
|
|
const isDegrade = _.get(req.app.locals.wap, 'webapp.degrade', false);
|
|
|
const isDegrade = _.get(req.app.locals.wap, `webapp.${config.appName}-degrade`, false);
|
|
|
|
|
|
if (isDegrade) {
|
|
|
return res.send(degradeHtml);
|
...
|
...
|
|