From d825d1d335cee6a5fd9318fbe5910fc37cda23e8 Mon Sep 17 00:00:00 2001 From: Rafael Date: Tue, 31 May 2016 12:14:16 -0300 Subject: [PATCH] Fix for angular resource error 404 on save --- templates/endpoint/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/endpoint/index.js b/templates/endpoint/index.js index 26dc430dd..ad36fe887 100644 --- a/templates/endpoint/index.js +++ b/templates/endpoint/index.js @@ -9,6 +9,7 @@ router.get('/', controller.index);<% if (filters.models) { %> router.get('/:id', controller.show); router.post('/', controller.create); router.put('/:id', controller.update); +router.post('/:id', controller.update); router.patch('/:id', controller.update); router.delete('/:id', controller.destroy);<% } %>