Commit e567280c authored by Robert Speicher's avatar Robert Speicher
Browse files

Add a basic `/` route; move old `/` route to `/system_hook`

parent 55b219bc
...@@ -8,12 +8,16 @@ class MarketoTools < Sinatra::Base ...@@ -8,12 +8,16 @@ class MarketoTools < Sinatra::Base
username == ENV['AUTH_USERNAME'] && password == ENV['AUTH_PASSWORD'] username == ENV['AUTH_USERNAME'] && password == ENV['AUTH_PASSWORD']
end end
get '/' do
'success'
end
# Receives GitLab System Hooks # Receives GitLab System Hooks
# #
# Specifically, we're interested in the `user_create` event. # Specifically, we're interested in the `user_create` event.
# #
# See http://gitlab.com/help/system_hooks/system_hooks # See http://gitlab.com/help/system_hooks/system_hooks
post '/' do post '/system_hook' do
begin begin
params = JSON.parse(request.body.read) params = JSON.parse(request.body.read)
rescue JSON::ParserError rescue JSON::ParserError
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment