UNPKG

iframely

Version:

oEmbed/2 gateway endpoint. Get embed data for various http links through one self-hosted API

21 lines (16 loc) 598 B
import { getProviderOptionsQuery } from '../api/utils.js'; export default function(app) { app.get('/debug', function(req, res, next) { var DEBUG = CONFIG.DEBUG; if ("debug" in req.query) { DEBUG = {"on":1, "true":1}[req.query.debug]; } res.render('debug',{ uri: req.query.uri, mixAllWithDomainPlugin: !!{"on":1, "true":1}[req.query.mixAllWithDomainPlugin], refresh: !!{"on":1, "true":1}[req.query.refresh], DEBUG: DEBUG, QUERY: getProviderOptionsQuery(req.query) }); }); };