(request: Request)
| 123 | }; |
| 124 | |
| 125 | function getPathFromRequest(request: Request): string | null { |
| 126 | const url = new URL(request.url); |
| 127 | |
| 128 | const path = url.searchParams.get("path"); |
| 129 | |
| 130 | if (!path) { |
| 131 | return null; |
| 132 | } |
| 133 | |
| 134 | if (path.startsWith("$.")) { |
| 135 | return path; |
| 136 | } |
| 137 | |
| 138 | return `$.${path}`; |
| 139 | } |
| 140 | |
| 141 | function getMinimalFromRequest(request: Request): boolean | undefined { |
| 142 | const url = new URL(request.url); |