diff options
Diffstat (limited to 'web/interface.rb')
-rw-r--r-- | web/interface.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web/interface.rb b/web/interface.rb new file mode 100644 index 0000000..5914866 --- /dev/null +++ b/web/interface.rb @@ -0,0 +1,9 @@ +require 'sinatra' +require_relative '../db' + +$config = Config.first + +get '/' do + @posts = Post.all + erb :index +end |