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:11:29 +0800
Commit
60c7a4182d8407d0b362b9dfc4601dc42e8e7282
1 parent
9674047b
提交
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
server/index.js
server/libs/App.js
server/index.js
View file @
60c7a41
...
...
@@ -74,7 +74,7 @@ var apiCofig = {
app
.
use
(
session
(
options
));
},
useToOuter
:
function
(
app
,
controllers
){
//
app.use(grayroute(controllers));
app
.
use
(
grayroute
(
controllers
));
}
};
...
...
server/libs/App.js
View file @
60c7a41
...
...
@@ -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
);
...
...
Please
register
or
login
to post a comment