Sha256: 12e878f9498e813e33e4525128891693837847fce985bf956b1c132090a27a1b
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 Bytes
Contents
module Quintype::Routes class Railtie < Rails::Railtie config.quintype_routes = ActiveSupport::OrderedOptions.new initializer "quintype-routes.register_routes" do |app| api_host = app.config.quintype_routes.quintype_host app.config.middleware.insert_before(Rack::Runtime, Rack::ReverseProxy) do reverse_proxy '/api', api_host reverse_proxy '/login', api_host reverse_proxy '/auth.form', api_host reverse_proxy '/admin', api_host reverse_proxy '/shrubbery', api_host reverse_proxy '/sitemap', api_host reverse_proxy '/feed', api_host reverse_proxy '/rss-feed', api_host reverse_proxy '/stories.rss', api_host reverse_proxy '/news_sitemap.xml', api_host end if api_host end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quintype-routes-0.1.1 | lib/quintype/routes/railtie.rb |