             .set('Accept', 'application/json')
             .end (err, res) ->
                 callback err, res.body
-# to fix
+
+
+
 data = {
     getHomeBookmarks: homedata
     getPlacesBookmarks: placesdata

            .end (err, res) ->
                callback err, res.body

    createHomeData: (homedata, callback) ->
        request
            .post('/api/homedata')
            .send(homedata)
            .end (err, res) ->
                callback err, res.body

    deleteHomeData: (homedata, callback) ->
        request
            .del('/api/homedata/' + homedata.id)
            .end callback

    updateHomeData: (homedata, callback) ->
        request
            .put('/api/homedata' + homedata.id)
            .send(homedata) # to fix
            .end (err, res) ->
                callback err, res.body



placesdata =

# C'est le composant principal de l'application.
App = React.createClass

    render: ->
        div null,
            SideBar
                homedata: @props.homedata
                placesdata: @props.placesdata
