Files
hoppscotch/packages/hoppscotch-app/helpers/lenses/jsonLens.ts
2021-09-16 22:24:21 +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