Skip to content

Instantly share code, notes, and snippets.

@swordray
Last active August 29, 2015 14:26
Show Gist options
  • Save swordray/c09f38e05edd0f8fcb6c to your computer and use it in GitHub Desktop.
Save swordray/c09f38e05edd0f8fcb6c to your computer and use it in GitHub Desktop.
require 'rack/reverse_proxy'
require 'sinatra'
use Rack::ReverseProxy do
reverse_proxy /^.*$/, 'http://api.secipin.com/guide/products.json?per=1'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment