# frozen_string_literal: true

require 'sinatra'
require 'sinatra/reloader' if development?

require 'pain/web/settings'

require 'pain/models/acm_certificate'

get('/') do
  @certificates = Pain::ACMCertificate.order(:not_after).to_a
  slim :certificates
end

get('/css/:stylesheet.css') { |stylesheet| sass stylesheet.to_sym }
