text: 'use strict';
  
  /* jshint -W098 */
  // The Package is past automatically as first parameter
  module.exports = function(GrantsTheme, app, auth, database) {
  
    app.get('/api/example/anyone', function(req, res, next) {
      res.send('Anyone can access this');
    });
  
    app.get('/api/example/auth', auth.requiresLogin, function(req, res, next) {
      res.send('Only authenticated users can access this');
    });
  
    app.get('/api/example/admin', auth.requiresAdmin, function(req, res, next) {
      res.send('Only users with Admin role can access this');
    });
  
    app.get('/api/example/render', function(req, res, next) {
      GrantsTheme.render('index', {
        package: 'grantsTheme'
      }, function(err, html) {
        //Rendering a view from the Package server/views
        res.send(html);
      });
    });
    
    app.get('/api/rosters/render', function(req, res, next) {
      GrantsTheme.render('rosters', {
        package: 'grantsTheme'
      }, function(err, html) {
        //Rendering a view from the Package server/views
        res.send(html);
      });
    });
  };
  