MCPcopy
hub / github.com/diegohaz/rest / controller.js

File controller.js

generators/api/templates/controller.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1<%_ if (generateModel && methods.length) { _%>
2import { success, notFound<% if (storeUser && (userMethods.indexOf('PUT') !== -1 || userMethods.indexOf('DELETE') !== -1)) { %>, authorOrAdmin<% } %> } from '../../services/response/'
3import { <%= pascal %> } from '.'
4<%_ } _%>

Callers

nothing calls this directly

Calls 6

createFunction · 0.85
successFunction · 0.85
authorOrAdminFunction · 0.85
ifFunction · 0.70
viewFunction · 0.70
notFoundFunction · 0.70

Tested by

no test coverage detected