//
// Misc  Controller
//

'use strict';

var path = require('path'),
    settings = require('./../config');

module.exports = function() {

    var app = this.app;

    //
    // Routes
    //
    app.get('/robots.txt', function(req, res) {
        if (settings.misc && settings.misc.noRobots) {
            res.sendFile(path.resolve(__dirname, '../misc/robots.txt'));
        } else {
            res.send(404);
        }
    });

};

@@ -375,21 +375,30 @@
     
-%7D else %7B%0A
+    return;%0A   
     
+ %7D%0A
     
@@ -416,26 +416,16 @@
 d(404);%0A
-        %7D%0A
     %7D);%0A

Clean up misc controller