From c65ae97be69dedadaf5b55bde588ef18a7211597 Mon Sep 17 00:00:00 2001 From: Brad Frizzell Date: Thu, 16 Feb 2017 17:33:58 -0500 Subject: [PATCH] Fixed route error --- build-system/server.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build-system/server.js b/build-system/server.js index 2d927fb256d0..a81846c74be7 100644 --- a/build-system/server.js +++ b/build-system/server.js @@ -456,6 +456,20 @@ app.use('/min/', function(req, res) { proxyToAmpProxy(req, res, /* minify */ true); }); +// Nest the response in an iframe. +// Example: +// http://localhost:8000/iframe/examples/ads.amp.max.html +app.get('/iframe/*', function(req, res) { + // Returns an html blob with an iframe pointing to the url after /iframe/. + res.send(` + + + + + `); +}); + // A4A envelope. // Examples: // http://localhost:8000/a4a[-3p]/examples/animations.amp.max.html