mirror of https://gitee.com/bigwinds/arangodb
Clean up templates
This commit is contained in:
parent
b8d082941a
commit
31526a8227
|
@ -1,3 +1,3 @@
|
|||
'use strict';
|
||||
<% _.each(routePaths, function (path) { %>
|
||||
module.context.use('/<%= path %>', require('./routes/<%= path %>'));<% }); %>
|
||||
module.context.use('/<%= path %>', require('./routes/<%= path %>'));<% }); %>
|
||||
|
|
|
@ -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(`
|
||||
|
|
Loading…
Reference in New Issue