Files
hoppscotch/helpers/lenses/jsonLens.ts
2021-09-15 17:30:04 +05:30

13 lines
327 B
TypeScript

import { isJSONContentType } from "../utils/contenttypes"
import { Lens } from "./lenses"
const jsonLens: Lens = {
lensName: "response.json",
isSupportedContentType: isJSONContentType,
renderer: "json",
rendererImport: () =>
import("~/components/lenses/renderers/JSONLensRenderer.vue"),
}
export default jsonLens