Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 226 Bytes
get '/' do
# Get the dates. Be warned, I never said this was good code ;-)
@dates = Dir[settings.data_root + '/*.json'].sort.reverse.first(168).reverse.map { |a| a[/\d{4}-\d{2}-\d{2}-\d*(?=\.)/] }.compact
erb :index
end
Something went wrong with that request. Please try again.