var compression = require('compression');
var express = require('express');
var app = express();
var courses = require ('./master.json');
var search = require('./search.json');

app.use(compression());

app.use(express.static('.'));

app.get('/api/:id', function(req, res){
  res.send(JSON.stringify(courses[req.params.id]));
});

app.get('/search/:id', function(req, res){
  res.send(JSON.stringify(search[req.params.id]));
})


var port = process.argv[2] || 3000;
app.listen(port, 'localhost', function(){
  console.log("Server started at " + port);
});

@@ -228,17 +228,22 @@
 static('
-.
+public
 '));%0D%0A%0D%0A
@@ -294,31 +294,16 @@
 es.send(
-JSON.stringify(
 courses%5B
@@ -313,25 +313,24 @@
 .params.id%5D)
-)
 ;%0D%0A%7D);%0D%0A%0D%0Aap
@@ -386,23 +386,8 @@
 end(
-JSON.stringify(
 sear
@@ -404,17 +404,16 @@
 ams.id%5D)
-)
 ;%0D%0A%7D)%0D%0A%0D
@@ -413,18 +413,16 @@
 %0D%0A%7D)%0D%0A%0D%0A
-%0D%0A
 var port

Remove redundant JSON stringify