aboutsummaryrefslogtreecommitdiffstats
path: root/app.rb
diff options
context:
space:
mode:
authorTeddy Wing2014-06-08 11:36:38 -0400
committerTeddy Wing2014-06-08 11:36:38 -0400
commit8806e3a676d2fbe1397b0079318ca279851e476e (patch)
treea4ccb15be6c1f6026cd30ad422abc6599857000c /app.rb
parent9f033f1558c67484c545ff3610b2c866603a6eef (diff)
downloadsellevate-8806e3a676d2fbe1397b0079318ca279851e476e.tar.bz2
Get label creation working by shelling out to python
Dammit Context.IO Ruby SDK
Diffstat (limited to 'app.rb')
-rw-r--r--app.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app.rb b/app.rb
index 3564523..4101e10 100644
--- a/app.rb
+++ b/app.rb
@@ -29,4 +29,11 @@ class App < Sinatra::Base
get '/auth-callback' do
erb :auth_callback
end
+
+ get '/initialise-labels' do
+ contextio = FancyBear::ContextIO::Label.new('sellevate.hack@gmail.com')
+ contextio.create_defaults
+
+ redirect to('/')
+ end
end