We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a29b713 + 696c6fb commit 283d493Copy full SHA for 283d493
endpoint/templates/name.controller.js
@@ -50,15 +50,15 @@ function removeEntity(res){
50
};
51
}<% } %>
52
53
-// Get list of <%= name %>s
+// Gets list of <%= name %>s from the DB.
54
exports.index = function(req, res) {<% if (!filters.mongoose) { %>
55
res.json([]);<% } if (filters.mongoose) { %>
56
<%= classedName %>.findAsync()
57
.then(responseWithResult(res))
58
.catch(handleError(res));<% } %>
59
};<% if (filters.mongoose) { %>
60
61
-// Get a single <%= name %>
+// Gets a single <%= name %> from the DB.
62
exports.show = function(req, res) {
63
<%= classedName %>.findByIdAsync(req.params.id)
64
.then(handleEntityNotFound(res))
0 commit comments