```coffeescript
passport = require('./initializers/authentication')

narrativeApi = require('./routes/api/narrative')
dashboardRoutes = require('./routes/dashboard.coffee')
indicatorRoutes = require('./routes/indicators.coffee')
bookmarkRoutes = require('./routes/bookmarks.coffee')
reportRoutes = require('./routes/reports.coffee')
testRoutes = require('./routes/tests.coffee')

module.exports = exports = (app) ->
  # REST API
  app.resource 'api/narrative', narrativeApi, { format: 'json' }

  app.get "/", dashboardRoutes.index
  app.get "/dashboard", dashboardRoutes.index
  app.get "/indicators", indicatorRoutes.index
  app.get "/reports", reportRoutes.index
  app.get "/bookmarks", bookmarkRoutes.index

  app.get "/indicator/:id", indicatorRoutes.show

  app.get "/report/:id", reportRoutes.show

  # Tests
  if app.settings.env == 'test'
    app.get "/tests", testRoutes.test
```

Disable authentication in development, and make routes DRYer
user
```coffeescript
passport = require('./initializers/authentication')

narrativeApi = require('./routes/api/narrative')
dashboardRoutes = require('./routes/dashboard.coffee')
indicatorRoutes = require('./routes/indicators.coffee')
bookmarkRoutes = require('./routes/bookmarks.coffee')
reportRoutes = require('./routes/reports.coffee')
testRoutes = require('./routes/tests.coffee')

module.exports = exports = (app) ->
  ensureAuthenticated = (req, res, next) ->
    return next() if app.settings.env == 'development'

    passport.
      authenticate('basic', { session: false }).
      call(@, req, res, next)

  # REST API
  app.resource 'api/narrative', narrativeApi, { format: 'json' }

  app.get "/", ensureAuthenticated, dashboardRoutes.index
  app.get "/dashboard", ensureAuthenticated, dashboardRoutes.index
  app.get "/indicators", ensureAuthenticated, indicatorRoutes.index
  app.get "/reports", ensureAuthenticated, reportRoutes.index
  app.get "/bookmarks", ensureAuthenticated, bookmarkRoutes.index

  app.get "/indicator/:id", ensureAuthenticated, indicatorRoutes.show

  app.get "/report/:id", ensureAuthenticated, reportRoutes.show

  # Tests
  if app.settings.env == 'test'
    app.get "/tests", testRoutes.test
```
assistant