From 91fd038d5c39c924f2a8d7483b4eda3cd66b6747 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 23 Jun 2013 19:53:20 -0700 Subject: [PATCH] The world's easiest blog engine --- app.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.rb b/app.rb index b7112336..c16fb9b2 100644 --- a/app.rb +++ b/app.rb @@ -26,6 +26,11 @@ get '/browse' do slim :browse end +get '/blog' do + # expires 500, :public, :must_revalidate + return File.read File.join(DIR_ROOT, 'public', 'sites', 'kyledrake', 'blog.html') +end + get '/new' do dashboard_if_signed_in @site = Site.new