示例#1
0
文件: requests.js 项目: oren/prohub
  dal.listProjects(function(err, data) {
    if (err) {
      res.statusCode = 500;
      return res.end(err);
    }

    var summarybar_args = {
      projects: Object.keys(data).length || 0,
      issues: 0,
      milestones: 0,
      contributors: 0,
      staleness: 0
    };

    var body_args = {
      org: config.org,
      projects: data,
      summarybar: summarybar(summarybar_args)
    };
    
    res.write(header());
    res.write(body(body_args));
    res.end(footer());

  });
示例#2
0
文件: requests.js 项目: oren/prohub
exports.handler = function(req, res) {

  res.write(header());

  var body_args = {
    summarybar: summarybar()
  };

  res.write(body(body_args));
  res.end(footer());

};