Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-shop-fe2
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
weiqingting
2016-06-20 14:05:32 +0800
Commit
9674047b07744e3b027bd0c756df412966ecbbe5
1 parent
29e607f1
提交
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
code/libs/App.js
server/index.js
code/libs/App.js
View file @
9674047
...
...
@@ -115,7 +115,7 @@ module.exports = function (apiCofig) {
var
err
=
new
Error
(
'Not Found'
);
err
.
status
=
404
;
// console.error(err.message);
res
.
end
(
);
next
(
err
);
});
/*後置中间间*/
apiCofig
.
useToOuter
&&
apiCofig
.
useToOuter
(
App
,
ContRegisters
);
...
...
server/index.js
View file @
9674047
...
...
@@ -74,7 +74,7 @@ var apiCofig = {
app
.
use
(
session
(
options
));
},
useToOuter
:
function
(
app
,
controllers
){
app
.
use
(
grayroute
(
controllers
));
//
app.use(grayroute(controllers));
}
};
...
...
Please
register
or
login
to post a comment