MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / aRestServerConfig

Function aRestServerConfig

packages/rest/src/__tests__/helpers.ts:34–48  ·  view source on GitHub ↗
(
  customConfig?: RestServerConfig,
)

Source from the content-addressed store, hash-verified

32}
33
34export function aRestServerConfig(
35 customConfig?: RestServerConfig,
36): RestServerResolvedConfig {
37 return Object.assign(
38 {
39 port: 3000,
40 openApiSpec: {disabled: true},
41 apiExplorer: {disabled: true},
42 cors: {},
43 expressSettings: {},
44 router: {},
45 },
46 customConfig,
47 );
48}

Callers 2

givenHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected