MCPcopy
hub / github.com/diegohaz/rest / notFound

Function notFound

generators/api/templates/controller.js:2–2  ·  view source on GitHub ↗
(storeUser && (userMethods.indexOf('PUT') !== -1 || userMethods.indexOf('DELETE') !== -1))

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<%_ } _%>
5<%_ if (methods.indexOf('POST') !== -1) { _%>

Callers 1

controller.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected