MCPcopy
hub / github.com/aspen-cloud/triplit / routeNotFoundResponse

Function routeNotFoundResponse

packages/server-core/src/session.ts:44–47  ·  view source on GitHub ↗
(route: string[])

Source from the content-addressed store, hash-verified

42}
43
44export function routeNotFoundResponse(route: string[]) {
45 const error = new RouteNotFoundError(route);
46 return ServerResponse(error.status, error.toJSON());
47}
48
49export function hasAdminAccess(token: ProjectJWT) {
50 return token && token['x-triplit-token-type'] === 'secret';

Callers 1

handleRequestMethod · 0.85

Calls 2

ServerResponseFunction · 0.85
toJSONMethod · 0.45

Tested by

no test coverage detected