2019-07-30 21:29:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-12 20:03:43 +00:00
|
|
|
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
|
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
|
2018-05-31 16:21:34 +00:00
|
|
|
class StaticController < ApplicationController
|
|
|
|
layout 'layouts/static'
|
|
|
|
|
|
|
|
def terms_and_privacy
|
|
|
|
@theme = 'minimal'
|
|
|
|
end
|
|
|
|
|
|
|
|
def ccs
|
2020-06-10 22:31:47 +00:00
|
|
|
begin
|
|
|
|
Houdini.ccs.retrieve_ccs do |ccs|
|
|
|
|
if ccs.is_a? String
|
|
|
|
redirect_to ccs
|
|
|
|
else
|
|
|
|
send_data(ccs, type: 'application/gzip')
|
|
|
|
end
|
2018-05-31 16:21:34 +00:00
|
|
|
end
|
2020-06-10 22:31:47 +00:00
|
|
|
rescue => e
|
|
|
|
render body: nil, status: 500
|
2018-05-31 16:21:34 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|