Added XML lens
This commit is contained in:
@@ -2,8 +2,9 @@ import jsonLens from "./jsonLens"
|
||||
import rawLens from "./rawLens"
|
||||
import imageLens from "./imageLens"
|
||||
import htmlLens from "./htmlLens"
|
||||
import xmlLens from "./xmlLens"
|
||||
|
||||
const lenses = [jsonLens, imageLens, htmlLens, rawLens]
|
||||
const lenses = [jsonLens, imageLens, htmlLens, xmlLens, rawLens]
|
||||
|
||||
function getSuitableLenses(response) {
|
||||
const result = []
|
||||
|
||||
7
helpers/lenses/xmlLens.js
Normal file
7
helpers/lenses/xmlLens.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const htmlLens = {
|
||||
lensName: "XML",
|
||||
supportedContentTypes: ["application/xml", "image/svg+xml", "text/xml", "application/rss+xml"],
|
||||
renderer: "xmlres",
|
||||
}
|
||||
|
||||
export default htmlLens
|
||||
Reference in New Issue
Block a user