/*!
 * Timekeeper
 * 2016 laudeon <audeon.louis@gmail.com>
 * MIT Licensed
 */
'use strict'

const user = require('./user')
const countdown = require('./countdown')
const passport = require('passport')

module.exports.bootstrap = function (app) {

  app.use(
    '/api', 
    passport.authenticate('jwt', { session: false })
  )
  app.use(user())
  app.use(countdown())
}
