IsSdur::Application.routes.draw do
  get 'admin' => "admin#index"



  controller :sedenie do
    get 'sedenie/nove' => :new, :as => "sedenie"
    post 'sedenie/vytvorit' => :create, :as => "prihlasit"
    delete 'sedenie/odhlasit' => :destroy, :as => "odhlasenie"
  end

  resources :uzivatels

  get "is/index"

  get "is_prihlasenie/index"  

  get 'stranky' => "web#index"
  
  get 'stranky/ospolocnosti' => "web#ospolocnosti"
  
  get 'stranky/aktuality' => "web#aktuality"
  
  get 'stranky/koncerty' => "web#koncerty"
  
  get 'stranky/fotogaleria' => "web#fotogaleria"
  
  get 'stranky/kontakt' => "web#kontakt"
  
  get 'stranky/sponzoring' => "web#sponzoring"
  
  get 'stranky/recenzie/new/:id' => "web#recenzie_new", :as => "stranky_recenzie_new"
  
  post 'stranky/recenzie/create/:id' => "web#recenzie_create", :as => "stranky_recenzie_create"
  
  get 'stranky/recenzie/show/:id' => "web#recenzie_show", :as => "stranky_recenzie_show"
  
  get 'stranky/show/:id' => "web#show", :as => "web_detail"

  resources :zvukove_subories

  resources :videas

  resources :galeria_fotkies

  get "/cinnosti_zams" => "cinnosti_zams#index", :as => "cinnosti_zams"
  
  get "/cinnosti_zams/new/:id" => "cinnosti_zams#new", :as => "cinnosti_zams_new"
  
  post "/cinnosti_zams/create/:id" => "cinnosti_zams#create", :as => "cinnosti_zams_create"


  get "/cinnosti_firmies" => "cinnosti_firmies#index", :as => "cinnosti_firmies"
  
  get "/cinnosti_firmies/new/:id" => "cinnosti_firmies#new", :as => "cinnosti_firmies_new"
  
  post "/cinnosti_firmies/create/:id" => "cinnosti_firmies#create", :as => "cinnosti_firmies_create"

  resources :c_stav_cinnostis

  resources :c_typ_cinnostis

  resources :sponzorske_daries

  resources :c_stav_sponzor_dars

  resources :evidencia_zmluvs

  resources :cinnostis

  resources :recenzies
  
  get "/podujatie_klientis" => "podujatie_klientis#index", :as => "podujatie_klientis"
  
  get "/podujatie_klientis/new/:id" => "podujatie_klientis#new", :as => "podujatie_klientis_new"
  
  post "/podujatie_klientis/create/:id" => "podujatie_klientis#create", :as => "podujatie_klientis_create"

  resources :podujatia

  resources :c_stav_podujatia

  resources :c_stav_vstupenieks

  resources :kontaktne_osobies

  resources :firmies

  resources :klientis

  resources :zamestnancis

  # The priority is based upon order of creation:
  # first created -> highest priority.

  # Sample of regular route:
  #   match 'products/:id' => 'catalog#view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
  # This route can be invoked with purchase_url(:id => product.id)

  # Sample resource route (maps HTTP verbs to controller actions automatically):
  #   resources :products

  # Sample resource route with options:
  #   resources :products do
  #     member do
  #       get 'short'
  #       post 'toggle'
  #     end
  #
  #     collection do
  #       get 'sold'
  #     end
  #   end

  # Sample resource route with sub-resources:
  #   resources :products do
  #     resources :comments, :sales
  #     resource :seller
  #   end

  # Sample resource route with more complex sub-resources
  #   resources :products do
  #     resources :comments
  #     resources :sales do
  #       get 'recent', :on => :collection
  #     end
  #   end

  # Sample resource route within a namespace:
  #   namespace :admin do
  #     # Directs /admin/products/* to Admin::ProductsController
  #     # (app/controllers/admin/products_controller.rb)
  #     resources :products
  #   end

  # You can have the root of your site routed with "root"
  # just remember to delete public/index.html.
  # root :to => 'welcome#index'
  
  root :to => 'web#index'

  # See how all your routes lay out with "rake routes"

  # This is a legacy wild controller route that's not recommended for RESTful applications.
  # Note: This route will make all actions in every controller accessible via GET requests.
  # match ':controller(/:action(/:id))(.:format)'
end
