export class API { #path: string; #fileUrl: URL; constructor({ path, fileUrl }: { path: string; fileUrl: URL }) { this.#path = path; this.#fileUrl = fileUrl; } get path() { return this.#path; } get isDynamic() { return this.#path.includes("$"); } get isCatchAll() { return this.#path.includes("$$"); } get dynamicSegments() { return this.#path.match(/(?