MCPcopy Create free account
hub / github.com/garrytan/gstack / classifyRoute

Function classifyRoute

ios-qa/daemon/src/proxy.ts:105–111  ·  view source on GitHub ↗
(method: string, path: string)

Source from the content-addressed store, hash-verified

103 * capability tier it requires.
104 */
105export function classifyRoute(method: string, path: string): {
106 allowed: boolean;
107 requiredCapability: ReturnType<typeof tierForRoute>;
108} {
109 const tier = tierForRoute(method, path);
110 return { allowed: tier !== null, requiredCapability: tier };
111}

Callers 2

handleTailnetFunction · 0.90

Calls 1

tierForRouteFunction · 0.90

Tested by

no test coverage detected