MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / getEndpointType

Function getEndpointType

web/src/components/settings/ChannelSelectorModal.js:72–76  ·  view source on GitHub ↗
(ep)

Source from the content-addressed store, hash-verified

70 const currentEndpoint = channelEndpoints[channelId] || '';
71
72 const getEndpointType = (ep) => {
73 if (ep === '/api/ratio_config') return 'ratio_config';
74 if (ep === '/api/pricing') return 'pricing';
75 return 'custom';
76 };
77
78 const currentType = getEndpointType(currentEndpoint);
79

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected