   this.resource 'monitor', ->
     this.resource 'request', path: '/:request_id'
 
-App.RequestModel = Ember.Object.extend
-  name: ''
-  id: 0
+#App.Requests = Ember.MutableArray.create()
 
+App.RequestModel = DS.Model.extend
+  body: DS.attr()
+  headers: DS.attr()
+
+App.RequestId = 1
+
+# Index
 App.IndexRoute = Ember.Route.extend
   activate: (controller) ->
     $('.top-bg').animate
       height: 500
     $('.start').fadeIn()
-  model: ->
-    ['red', 'yellow', 'blue']
 
 App.IndexController = Ember.Controller.extend
   setupController: (controller) ->
 
-
-
+# Monitor
 App.MonitorRoute = Ember.Route.extend
   activate: (controller) ->
     $('.top-bg').animate

        ###
        websocket.onmessage = (ev) ->
          data = JSON.parse ev.data
          console.log me, data

          me.set 'requestContent', data.content

          me.pushObject
            name: 'test'

          me.set 'content', []

App.RequestRoute = Ember.Route.extend
  model: (params) ->
    store = @get 'store'

#App.RequestController = Ember.Route.extend

App.MonitorController = Ember.ArrayController.extend

  content: []

  sortProperties: ['id']
  sortAscending: false

  init: ->
    @._super()
    self = @

    content = @get 'content'

    $.getJSON config.baseUrl + "monitor/request", (data) ->
      if data.success
        self.websocket = websocket = new WebSocket config.liveUrl + "?id=" + data.session
        self.set 'sessionid', data.session

        websocket.onopen = (ev) ->

