Commit ee0cd2c9 authored by Robert Speicher's avatar Robert Speicher 🇳🇱

Merge branch 'rs-routes' into 'master'

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

See merge request !2
parents 55b219bc e567280c
Pipeline #293564 skipped
......@@ -8,12 +8,16 @@ class MarketoTools < Sinatra::Base
username == ENV['AUTH_USERNAME'] && password == ENV['AUTH_PASSWORD']
end
get '/' do
'success'
end
# Receives GitLab System Hooks
#
# Specifically, we're interested in the `user_create` event.
#
# See http://gitlab.com/help/system_hooks/system_hooks
post '/' do
post '/system_hook' do
begin
params = JSON.parse(request.body.read)
rescue JSON::ParserError
......
Markdown is supported
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