Changed req.params.index to req.params.id

The angularjs frontend sends 'id' as the request parameter instead of 'index'.