MCPcopy Create free account
hub / github.com/Noumena-Network/code / getPreflightEndpointChecks

Function getPreflightEndpointChecks

src/utils/preflightChecks.tsx:27–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27function getPreflightEndpointChecks(): PreflightEndpointCheck[] {
28 return [
29 {
30 url: buildNoumenaPlatformUrl('/v1/me'),
31 method: 'GET',
32 expectedStatuses: [200, 401, 403],
33 },
34 {
35 url: getOauthTokenUrl(),
36 method: 'POST',
37 expectedStatuses: [200, 400, 401, 403],
38 data: 'probe=1',
39 headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
40 },
41 ];
42}
43
44export function getPreflightEndpoints(): string[] {
45 return getPreflightEndpointChecks().map(endpoint => endpoint.url);

Callers 2

getPreflightEndpointsFunction · 0.85
checkEndpointsFunction · 0.85

Calls 2

buildNoumenaPlatformUrlFunction · 0.85
getOauthTokenUrlFunction · 0.85

Tested by

no test coverage detected