Created
July 17, 2015 13:46
-
-
Save dominykas/2433d5c9e9fb941c52d5 to your computer and use it in GitHub Desktop.
hapijs/h2o2 issue #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Hapi = require("hapi"); | |
var server = new Hapi.Server(); | |
server.connection({port:23232}); | |
server.route({ | |
method: "GET", | |
path: "/", | |
handler: { | |
proxy: { | |
redirects: 10, | |
mapUri: function (req, cb) { | |
cb(null, "http://drive.google.com/uc?id=0B56OaK7BeVZ7ZU1pZkQtQ2R4dU0"); | |
} | |
} | |
} | |
}); | |
server.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment