Rails.application.routes.draw do
  mount Rswag::Ui::Engine => '/api-docs'
  mount Rswag::Api::Engine => '/api-docs'
  # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
  namespace 'api' do
    namespace 'v1' do
      resources :goals
      post '/payouts', to: 'payouts#calculate'
      post '/payouts/:jugadores/:configuracion', to: 'payouts#calculate'
    end
  end
end
