2022-02-12 15:30:27 -05:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
require 'sinatra'
|
|
|
|
|
2022-02-12 18:09:59 -05:00
|
|
|
before do
|
2022-02-12 18:54:27 -05:00
|
|
|
redirect("https://www.#{request.host + request.path_info}") \
|
|
|
|
unless settings.development? || request.host =~ /^www\./
|
2022-02-12 18:09:59 -05:00
|
|
|
end
|
|
|
|
|
2022-02-12 19:00:22 -05:00
|
|
|
get('/*') { erb(:index) }
|