MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / normalizeApiExplorerConfig

Function normalizeApiExplorerConfig

packages/rest/src/rest.server.ts:1255–1267  ·  view source on GitHub ↗
(
  input: ApiExplorerOptions | undefined,
)

Source from the content-addressed store, hash-verified

1253}
1254
1255function normalizeApiExplorerConfig(
1256 input: ApiExplorerOptions | undefined,
1257): ApiExplorerOptions {
1258 const config = input ?? {};
1259 const url = config.url ?? 'https://explorer.loopback.io';
1260
1261 config.httpUrl =
1262 config.httpUrl ?? config.url ?? 'http://explorer.loopback.io';
1263
1264 config.url = url;
1265
1266 return config;
1267}

Callers 1

resolveRestServerConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected