1
0
Fork 0

Clean up templates

This commit is contained in:
Alan Plum 2016-01-27 17:22:39 +01:00
parent b8d082941a
commit 31526a8227
No known key found for this signature in database
GPG Key ID: 8ED72A9A323B6EFD
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,3 @@
'use strict';
<% _.each(routePaths, function (path) { %>
module.context.use('/<%= path %>', require('./routes/<%= path %>'));<% }); %>
module.context.use('/<%= path %>', require('./routes/<%= path %>'));<% }); %>

View File

@ -43,10 +43,11 @@ router.post(function (req, res) {
throw e;
}
_.extend(<%= document %>, meta);
res.status(201);
res.send(<%= document %>);
})
.body(<%= model %>, 'The <%= document %> to create.')
.response(<%= model %>, 'The created <%= document %>.')
.response(201, <%= model %>, 'The created <%= document %>.')
.error(HTTP_CONFLICT, 'The <%= document %> already exists.')
.summary('Create a new <%= document %>')
.description(`