Authored by xuqi

auth middleware

... ... @@ -13,6 +13,8 @@ module.exports = (req, res, next) => {
let refer = '';
if (req.method === 'GET') {
refer = req.getUrl();
} else {
refer = req.get('Referer');
}
... ...