aboutsummaryrefslogtreecommitdiffstats
path: root/app.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app.rb')
-rw-r--r--app.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app.rb b/app.rb
index d59eadc..9db11e2 100644
--- a/app.rb
+++ b/app.rb
@@ -42,4 +42,9 @@ class App < Sinatra::Base
contextio = FancyBear::ContextIO::Message.new('sellevate.hack@gmail.com')
json contextio.all
end
+
+ get '/messages/:id.json' do
+ contextio = FancyBear::ContextIO::Message.new('sellevate.hack@gmail.com')
+ json contextio.get(params[:id])
+ end
end