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