/*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);

@@ -670,40 +670,8 @@
 80;%0A
-console.log(%22port is %22 + port);%0A
 http

Remove logging output