             else
                 send {"_id": res.id}, 201
 
+# PUT /data/:id
 action 'update', ->
     # this version don't take care of conflict (erase DB with the sent value)
     db.get params.id, (err, doc) ->

        else
            send 404

action 'merge', ->
    # this version don't take care of conflict (erase DB with the sent value)
    db.get params.id, (err, doc) ->

        else if status is 404
            send {"exist": false}

# GET /data/:id
action 'find', ->
    db.get params.id, (err, doc) ->
        if err
