return res.redirect(`/404?err=${errCode}`);
}
- let acceptLang = req.headers["accept-language"]
- ? req.headers["accept-language"].split(",")[0]
- : "en";
- let lang = site.my_user
- ? site.my_user.local_user.lang == "browser"
- ? acceptLang
- : "en"
- : acceptLang;
-
let isoData: IsoData = {
path: req.path,
site_res: site,
routeData,
- lang,
};
const wrapper = (