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

Function apiWithAllAdminMethods

test/index.js:101–106  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

99}
100
101function apiWithAllAdminMethods(dir) {
102 return api({
103 kebab: 'all-admin',
104 adminMethods: ['POST', 'GET LIST', 'GET ONE', 'PUT', 'DELETE']
105 }, dir);
106}
107
108function apiWithAllUserMethods(dir) {
109 return api({

Callers 1

installFunction · 0.85

Calls 1

apiFunction · 0.85

Tested by

no test coverage detected