3 class MainController < ApplicationController
4 verify :only => :ymp, :params => [:project, :repository, :arch, :binary],
16 render :template => "main/old_#{dist}.rhtml"
18 @message = "No old page found for dist #{10.2}"
19 render :template => "error", :status => 404
24 path = "/published/#{params[:project]}/#{params[:repository]}/#{params[:arch]}/#{params[:binary]}?view=ymp"
25 req = Net::HTTP::Get.new(path)
26 req['x-username'] = "bauersman"
28 host, port = API_HOST.split(/:/)
30 res = Net::HTTP.new(host, port).start do |http|
34 render :text => res.body, :content_type => res.content_type