Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
2016-08-17 10:11:14 +0800
Commit
c8dd8eef600a32056e8241a8acc0279661f6d765
1 parent
8386218d
auth middleware
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
doraemon/middleware/auth.js
doraemon/middleware/auth.js
View file @
c8dd8ee
...
...
@@ -13,6 +13,8 @@ module.exports = (req, res, next) => {
let
refer
=
''
;
if
(
req
.
method
===
'GET'
)
{
refer
=
req
.
getUrl
();
}
else
{
refer
=
req
.
get
(
'Referer'
);
}
...
...
Please
register
or
login
to post a comment