Rails.application.routes.draw do
  # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html

  get "/api/v1", to: 'application#health'

  namespace 'api' do
    namespace 'v1' do
      post 'webhook', to: 'webhook#receive'
      get 'webhook/test', to: 'webhook#test'
    end
  end
end
