aboutsummaryrefslogtreecommitdiff
path: root/interfaces/http/web/web.rb
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/http/web/web.rb')
-rw-r--r--interfaces/http/web/web.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/interfaces/http/web/web.rb b/interfaces/http/web/web.rb
new file mode 100644
index 0000000..8ae8afd
--- /dev/null
+++ b/interfaces/http/web/web.rb
@@ -0,0 +1,6 @@
+class WebInterface < Sinatra::Base
+ get '/' do
+ @posts = Post.all
+ erb :index
+ end
+end \ No newline at end of file