Authored by xuqi

auth middleware

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