Rails.application.routes.draw do
  get 'test/add_locations'
  get 'dashboard/index'
  get 'zrezygnuj' => 'email_filter#unsubscribe'
  get 'email_filter/unsubscribe'
  get 'kontakt' => 'home#contact'
  get 'regulamin' => 'home#statute'
  get 'monitoring' => 'home#monitor'
  get 'umow_konsultacje' => 'home#arrange_consultation'
  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
  post 'company_sizes/chg_prio'
  resources :company_sizes
  post 'expenses/chg_prio'
  resources :expenses
  resources :tags
  post 'company_activities/chg_prio'
  resources :company_activities
  post 'projects/chg_prio'
  resources :projects
  resources :dashboard
  resources :partners
  resources :experts
  resources :dictionaries
  get 'grants/activate'
  post 'grants/activate'
  resources :grants
  namespace :settings do
    resources :users
    resources :settings
    resources :email_messages
    resources :filter_for_emails
  end
  get 'welcome/index'
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  root 'home#index'
end
