text: 'use strict';
  
  var restify = require('restify');
  
  var server = restify.createServer({
    name: 'mock-server',
    version: '1.0.0'
  });
  
  server.use(restify.acceptParser(server.acceptable));
  server.use(restify.queryParser());
  server.use(restify.bodyParser());
  
  server.use(restify.authorizationParser());
  server.use(restify.dateParser());
  server.use(restify.CORS());
  server.pre(restify.pre.sanitizePath());
  server.pre(function (req, res, next) {
    res.charSet('utf-8');
    res.cache({maxAge: 0});
    next();
  });
  
  require('./routes')(server);
  
  server.listen(5050, function () {
    console.log('Mock server listening at %s', server.url);
  });
  