def do_GET(req, res)
debug('', "Serving URL #{req}")
@req = req
@res = res
begin
projectId = req.query['project'].to_s
debug('', "Project ID: #{projectId}")
reportId = req.query['report'].to_s
debug('', "Report ID: #{reportId}")
if projectId.empty? || reportId.empty?
debug('', "Project welcome page requested")
generateWelcomePage(projectId)
else
debug('', "Report #{reportId} of project #{projectId} requested")
attributes = req.query['attributes'] || ''
attributes = URLParameter.decode(attributes) unless attributes.empty?
generateReport(projectId, reportId, attributes)
end
rescue
end
end