From 32ef20a04d6b543b1c63ac4a416540140546ce9c Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Mon, 9 Dec 2013 21:04:40 -0500 Subject: [PATCH] created New york times api template --- app.js | 4 ---- views/api/nyt.jade | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 views/api/nyt.jade diff --git a/app.js b/app.js index bd7e056547..61b84a5020 100755 --- a/app.js +++ b/app.js @@ -94,10 +94,6 @@ app.get('/auth/foursquare/callback', passport.authorize('foursquare', { failureR app.get('/auth/tumblr', passport.authorize('tumblr')); app.get('/auth/tumblr/callback', passport.authorize('tumblr', { failureRedirect: '/api' }), function(req, res) { res.redirect('/api/tumblr'); }); -app.get('/auth/lastfm', passport.authorize('lastfm')); -app.get('/auth/lastfm/callback', passport.authorize('lastfm', { failureRedirect: '/api' }), function(req, res) { res.redirect('/api/lastfm'); }); - - app.listen(app.get('port'), function() { console.log('Express server listening on port ' + app.get('port')); }); diff --git a/views/api/nyt.jade b/views/api/nyt.jade new file mode 100644 index 0000000000..63e3ff2413 --- /dev/null +++ b/views/api/nyt.jade @@ -0,0 +1,19 @@ +extends ..layout + +block content + .page-header + h1 + i.fa.fa-music + | New York Times API + .btn-group.btn-group-justified + a.btn.btn-lg.btn-primary(href='http://developer.github.com/guides/getting-started/', target='_blank') + i.fa.fa-check-square-o + | Getting Started + a.btn.btn-lg.btn-primary(href='https://apigee.com/console/github', target='_blank') + i.fa.fa-laptop + | API Console + a.btn.btn-lg.btn-primary(href='http://developer.github.com/v3/', target='_blank') + i.fa.fa-file-text-o + | Documentation + + p nyt api \ No newline at end of file