var GitHub = require( '../../lib/Webmaker.js' ).github;

module.exports = {
  tags: function( req, res ) {
    GitHub.tags( req.params.repo, function( err, tags ) {
      if ( err ) {
        res.json( 500, { error: 'Unable to get tags for repo ' + repo + '.' } );
        return;
      }
      res.json( tags );
    });
  },
  commits: function( req, res ) {
    GitHub.commits( req.params.repo, function( err, commits ) {
      if ( err ) {
        res.json( 500, { error: 'Unable to get commits for repo ' + req.params.repo + '.' } );
        return;
      }
      res.json( commits );
    });
  },
};

var GitHub = require( '../../lib/Webmaker.js' ).github;

module.exports = {
  tags: function( req, res ) {
    GitHub.tags( req.params.repo, function( err, tags ) {
      if ( err ) {
        res.json( 500, { error: 'Unable to get tags for repo ' + req.params.repo + '.' } );
        return;
      }
      res.json( tags );
    });
  },
  commits: function( req, res ) {
    GitHub.commits( req.params.repo, function( err, commits ) {
      if ( err ) {
        res.json( 500, { error: 'Unable to get commits for repo ' + req.params.repo + '.' } );
        return;
      }
      res.json( commits );
    });
  },
};

Fix typo in tags error message.
Fix typo in tags error message.
