mywillpower.org/mywillpower.rb

11 lines
206 B
Ruby
Raw Normal View History

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