mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-02-28 07:58:08 +00:00
add more content to feeds
This commit is contained in:
@@ -12,8 +12,8 @@ module.exports = function (app) {
|
|||||||
*/
|
*/
|
||||||
app.get('/feeds', cache('10 minutes'), function(req, res, next) {
|
app.get('/feeds', cache('10 minutes'), function(req, res, next) {
|
||||||
Promise.props({
|
Promise.props({
|
||||||
twitter: twitter.getTweets(20),
|
twitter: twitter.getTweets(40),
|
||||||
github: github.getEvents(20)
|
github: github.getEvents(40)
|
||||||
}).then(function(data) {
|
}).then(function(data) {
|
||||||
res.status(200).send(data);
|
res.status(200).send(data);
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user