Rails.application.routes.draw do
  get 'zrezygnuj' => 'email_filter#unsubscribe'
  get 'email_filter/unsubscribe'
  get 'kontakt' => 'home#contact'
  get 'dotacja/:id' => 'home#show'
  get 'zestawienie_dotacji/plik' => 'home#prepare_pdf'
  get 'home/search'
  post 'home/search'
  post 'home/emailfilter'
  post 'home/register_contact'
  get 'home/order_meeting'
  post 'home/order_meeting_save'
  resources :home, only: %i[index show]
  devise_for :users
  resources :company_sizes
  resources :expenses
  resources :tags
  resources :company_activities
  resources :projects
  resources :partners
  resources :experts
  get 'grants/activate'
  post 'grants/activate'
  resources :grants
  namespace :settings do
    resources :users
  end
  get 'welcome/index'
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  root 'home#index'
end
