jsonLens.ts 327 B

123456789101112
  1. import { isJSONContentType } from "../utils/contenttypes"
  2. import { Lens } from "./lenses"
  3. const jsonLens: Lens = {
  4. lensName: "response.json",
  5. isSupportedContentType: isJSONContentType,
  6. renderer: "json",
  7. rendererImport: () =>
  8. import("~/components/lenses/renderers/JSONLensRenderer.vue"),
  9. }
  10. export default jsonLens