Skip to content

Commit 696c6fb

Browse files
committed
docs(gen:endpoint): standardized comments
1 parent effef8d commit 696c6fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: endpoint/templates/name.controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ function removeEntity(res){
5050
};
5151
}<% } %>
5252

53-
// Get list of <%= name %>s
53+
// Gets list of <%= name %>s from the DB.
5454
exports.index = function(req, res) {<% if (!filters.mongoose) { %>
5555
res.json([]);<% } if (filters.mongoose) { %>
5656
<%= classedName %>.findAsync()
5757
.then(responseWithResult(res))
5858
.catch(handleError(res));<% } %>
5959
};<% if (filters.mongoose) { %>
6060

61-
// Get a single <%= name %>
61+
// Gets a single <%= name %> from the DB.
6262
exports.show = function(req, res) {
6363
<%= classedName %>.findByIdAsync(req.params.id)
6464
.then(handleEntityNotFound(res))

0 commit comments

Comments
 (0)