 # Create a box.
 # Since we're creating a box, it doesn't have to exist, so we
 # don't need to call check_box().
-app.post "/box/:newboxname/?", check_api_key, (req, res) ->
+app.post "/box/:newboxname/?", nodetimeLog, check_api_key, (req, res) ->
   console.tick "got request create box #{req.params.newboxname}"
   res.header('Content-Type', 'application/json')
   boxname = req.params.newboxname


# Templating language
app.set('view engine', 'ejs')

parse_settings = (text) ->
  try

Box = require 'models/box'
User = require 'models/user'

nodetime = require('nodetime')
nodetime.profile
  accountKey: process.env.NODETIME_KEY
  appName: "#{process.env.CO_NODETIME_APP} #{require('os').hostname()}"
app = express()

# Trust the headers from nginx and change req.ip to the real IP
