Siema, mam problem z configuracja servera lineman js. Mam stworzonego na nim jsona, ktorego chcialbym updatowac uzywajac funkcji $resource.save(), sama funkcja działa i wysyła poprawnego posta na server jednak plik nie jest aktualizowany. Podejrzewam ze chodzi o obsluge posta, ale nie moge nic znalezc na ten temat. Dokumentacja i przykłady określają się tylko do getow i to mega trywialnych.

Deklaracja wygląda tak:

 app.get('/books', function (req, res) {
      res.json([
        {id: 1, title: 'Great Expectations', isbn: '9807876322', author: 'Dickens', kind: 'Fantasy, Horror', borrowed: false, borrower: '', pageQuantity: 267},
        {id: 2, title: 'Foundation Series', isbn: '9007836572', author: 'Asimov', kind: 'Adventure, Fantasy, Historical', borrowed: false, borrower: '', pageQuantity: 566},
        {id: 3, title: 'Treasure Island', isbn: '9851415668', author: 'Stephenson', kind: 'Fantasy', borrowed: true, borrower: '', pageQuantity: 211},
        {id: 4, title: 'Last Adventures of Captain Dog', isbn: '887452214', author: 'Blind', kind: 'Adventure, Historical', borrowed: false, borrower: '', pageQuantity: 667},
      ]);
    });

I nie mam pojęcia jak obsłuzyć posta, pomocy!