 
   res.setHeader 'Content-Type', 'application/json'
   res.send response
-
 
 app.get '/class/:id', (req, res) ->
 

  res.sendfile 'files/placeholder.png'



app.listen 3000
console.log 'Listening on port 3000'



app.get '/classes', (req, res) ->

  response = """{
    "url": "/classes", 
    "classes": [
      {
        "url": "/class/1",
        "name": "Mobile and Autonomous Innovation",
        "lectures": [
          {
            "url": "/class/1/lecture/1",
            "name": "Lecture One",
            "image": "/class/1/lecture/1/images/thumbnail",
          },{
            "url": "/class/1/lecture/2",
            "name": "Lecture Two",
            "image": "/class/1/lecture/2/images/thumbnail",
          }
        ]
      },{
        "url": "/class/2",
        "name": "Data Communications and Wireless Practical",
        "lectures": [
          {
            "url": "/class/2/lecture/1",
            "name": "Lecture One",
            "image": "/class/2/lecture/1/images/thumbnail"
          },{
            "url": "/class/2/lecture/2",
            "name": "Lecture Two",
            "image": "/class/2/lecture/2/images/thumbnail"
          }
        ]
      },{
        "url": "/class/3",
        "name": "Information Architecture",
        "lectures": [
          {
            "url": "/class/3/lecture/1",
            "name": "Lecture One",
            "image": "/class/3/lecture/1/images/thumbnail"
          },{
            "url": "/class/3/lecture/2",
            "name": "Lecture Two",
            "image": "/class/3/lecture/2/images/thumbnail"
          }
        ]
      }
