Skip to content

Commit fa67542

Browse files
author
Robert Yokota
committed
Return 204 on delete
1 parent 9058832 commit fa67542

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
temp/
3+
npm-debug.log

entity/templates/routes/_entities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ exports.destroy = function(req, res) {
3939
db.<%= _.capitalize(name) %>.find({ where: { id: req.param('id') } }).success(function(entity) {
4040
if (entity) {
4141
entity.destroy().success(function() {
42-
res.end()
42+
res.send(204)
4343
})
4444
} else {
4545
res.send(404)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-angular-express-sequelize",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "A Yeoman generator for AngularJS + Express + Sequelize",
55
"keywords": [
66
"yeoman-generator",

0 commit comments

Comments
 (0)