old_contents: var User = require('./models/user');
  
  var express     = require('express');
  var session     = require('express-session');
  var vhost       = require('vhost');
  var app         = express();
  var router      = express.Router();
  
  var mongoose   = require('mongoose');
  mongoose.connect('mongodb://localhost:27017/labeli-api');
  
  var bodyParser = require('body-parser');
  app.use(bodyParser.urlencoded({ extended: true }));
  app.use(bodyParser.json());
  
  app.use(session({
      secret: 'labeliSessionPwordAss',
      resave: true,
      saveUninitialized: true
  }));
  
  app.use(function(req, res, next)
  {
      res.header("Cache-Control", "no-cache");
      res.header("Access-Control-Allow-Origin", "http://localhost:9020");
      res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
      res.header("Access-Control-Allow-Credentials", "true");
      res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
      next();
  });
  
  app.use(function(req, res, next)
  {
      console.log("request by "+req.session.userId);
      
      if(req.session.userId == undefined)
      {
          req.session.userId = null;
          req.session.level = -1;
      }
      
      next();
  });
  
  app.use(require('./routes/users'));
  app.use(require('./routes/projects'));
  app.use(require('./routes/auth'));
  app.use(require('./routes/messages'));
  app.use(require('./routes/votes'));
  app.use(require('./routes/projectUsers'));
  app.use(require('./routes/surveys'));
  app.use(require('./routes/surveyItems'));
  app.use(require('./routes/surveyVotes'));
  
  app.use(router);
  app.listen(9010);
new_contents: var User = require('./models/user');
  
  var express     = require('express');
  var session     = require('express-session');
  var vhost       = require('vhost');
  var app         = express();
  var router      = express.Router();
  
  var mongoose   = require('mongoose');
  mongoose.connect('mongodb://localhost:27017/labeli-api');
  
  var bodyParser = require('body-parser');
  app.use(bodyParser.urlencoded({ extended: true }));
  app.use(bodyParser.json());
  
  app.use(session({
      secret: 'labeliSessionPwordAss',
      resave: true,
      saveUninitialized: true
  }));
  
  app.use(function(req, res, next)
  {
      res.header("Cache-Control", "no-cache");
      res.header("Access-Control-Allow-Origin", "http://localhost:9020");
      res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
      res.header("Access-Control-Allow-Credentials", "true");
      res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
      next();
  });
  
  app.use(function(req, res, next)
  {
      console.log("request by "+req.session.userId);
      
      if(req.session.userId == undefined)
      {
          req.session.userId = null;
          req.session.level = -1;
      }
      
      next();
  });
  
  app.use(require('./routes/users'));
  app.use(require('./routes/projects'));
  app.use(require('./routes/auth'));
  app.use(require('./routes/messages'));
  app.use(require('./routes/votes'));
  app.use(require('./routes/projectUsers'));
  app.use(require('./routes/surveys'));
  app.use(require('./routes/surveyItems'));
  app.use(require('./routes/surveyVotes'));
  
  // Add doc
  app.use("/", express.static("./doc/"));
  
  app.use(router);
  app.listen(9010);
subject: Change default path of API to Doc