Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
ccbikai(👎🏻🍜)
8 years ago
Commit
e49a0c18b308955cce39d1df94e441107906f863
1 parent
256c7d9d
add .catch(next)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/guang/controllers/rss.js
apps/guang/controllers/rss.js
View file @
e49a0c1
...
...
@@ -50,7 +50,7 @@ const index = (req, res, next) => {
return
res
.
send
(
feed
.
render
(
'atom-1.0'
));
}
return
res
.
send
(
feed
.
render
(
'rss-2.0'
));
});
})
.
catch
(
next
)
;
};
const
rss
=
(
req
,
res
,
next
,
gmt
)
=>
{
let
gender
=
req
.
query
.
gender
||
'1,2,3'
,
...
...
@@ -72,7 +72,7 @@ const rss = (req, res, next, gmt) => {
layout
:
false
,
items
:
result
});
});
})
.
catch
(
next
)
;
};
module
.
exports
=
{
...
...
Please
register
or
login
to post a comment