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

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/images/thumbnail"
          },{
            "url": "/class/1/lecture/2"
            "name": "Lecture Two"
            "image": "/class/1/images/thumbnail"
          }
        ]
      },{
        "url": "/class/2"
        "name": "Data Communications and Wireless Practical"
        "lectures": [
          {
            "url": "/class/2/lecture/1"
            "name": "Lecture One"
            "image": "/class/2/images/thumbnail"
          },{
            "url": "/class/2/lecture/2"
            "name": "Lecture Two"
            "image": "/class/2/images/thumbnail"
          }
        ]
      }

  res.sendfile 'files/placeholder.png'


port = 80
app.listen port
console.log "Listening on port #{port}"


