/*jslint node: true, esversion: 6 */
'use strict';

var http = require('http');
var Router = require('router');
var finalhandler = require('finalhandler');
var to_rss = require('./to_rss');

var router = new Router();
router.get('/comptop', function (req, res) {
    var title = 'Computational Topology Message Board';
    var description = 'RSS feed of the computational topology message board';
    var muut = new to_rss.Muut(
        'comptop', 'dave@cs.unc.edu', title, description
    );
    to_rss.muutToRss(muut,res);
});

function requestHandler(req, res) {
    var done = finalhandler(req, res);
    router(req, res, done);
}

var port = process.env.PORT || 8080;
console.log("port is " + port);
http.createServer(requestHandler).listen(port);

/*jslint node: true, esversion: 6 */
'use strict';

var http = require('http');
var Router = require('router');
var finalhandler = require('finalhandler');
var to_rss = require('./to_rss');

var router = new Router();
router.get('/comptop', function (req, res) {
    var title = 'Computational Topology Message Board';
    var description = 'RSS feed of the computational topology message board';
    var muut = new to_rss.Muut(
        'comptop', 'dave@cs.unc.edu', title, description
    );
    to_rss.muutToRss(muut,res);
});

function requestHandler(req, res) {
    var done = finalhandler(req, res);
    router(req, res, done);
}

var port = process.env.PORT || 8080;
http.createServer(requestHandler).listen(port);

Remove logging output