Rails.application.routes.draw do

  #namespace :api, :defaults => {:format => :json} do
  #  namespace :v1 do
  #    resources :import
  #  end
  #end

  resources :teams

  resources :users

  resources :starts

  # 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

  root :to => 'start#index'
  #root :to => 'login#index'

  # See how all your routes lay out with "rake routes"
  get    '/wartung', to: 'wartung#index'
  get    '/login',   to: 'login#index'
  post   '/login',   to: 'login#login'
  get    '/logout',  to: 'login#logout'
  get    '/impressum',  to: 'login#impressum'
  
  get	'/start', to: 'start#versions'
  
#  resources :agglomerations do
#    collection do
#      get "sorting_add"
#      get "sorting_toggle"
#      get "sorting_del"
#      get "change_order"
#      get "show_successor_fields"
#      get "limited_list_json"
#      get "limited_list_update"
#    end
#  end
#
#  get	'/agglomerations_abfrage', to: 'agglomerations_abfrage#index'
#  get	'/agglomerations_abfrage/result', to: 'agglomerations_abfrage#result'
#  post	'/agglomerations_abfrage/result', to: 'agglomerations_abfrage#result'
#  get	'/agglomerations_abfrage/filter_columns', to: 'agglomerations_abfrage#filter_columns'
#  post	'/agglomerations_abfrage/filter_columns', to: 'agglomerations_abfrage#filter_columns'
#
#  resources :plants do
#    collection do
#      get "sorting_add"
#      get "sorting_toggle"
#      get "sorting_del"
#      get "change_order"
#      get "show_successor_fields"
#      get "limited_list_json"
#      get "limited_list_update"
#    end
#  end
#
#  get	'/plants_abfrage', to: 'plants_abfrage#index'
#  get	'/plants_abfrage/result', to: 'plants_abfrage#result'
#  post	'/plants_abfrage/result', to: 'plants_abfrage#result'
#  get	'/plants_abfrage/filter_columns', to: 'plants_abfrage#filter_columns'
#  post	'/plants_abfrage/filter_columns', to: 'plants_abfrage#filter_columns'
#
#  resources :discharge_points do
#    collection do
#      get "sorting_add"
#      get "sorting_toggle"
#      get "sorting_del"
#      get "change_order"
#      get "show_successor_fields"
#      get "limited_list_json"
#      get "limited_list_update"
#    end
#  end
#
#  get	'/einleitstellen_abfrage', to: 'einleitstellen_abfrage#index'
#  get	'/einleitstellen_abfrage/result', to: 'einleitstellen_abfrage#result'
#  post	'/einleitstellen_abfrage/result', to: 'einleitstellen_abfrage#result'
#  get	'/einleitstellen_abfrage/filter_columns', to: 'einleitstellen_abfrage#filter_columns'
#  post	'/einleitstellen_abfrage/filter_columns', to: 'einleitstellen_abfrage#filter_columns'
#
#  resources :federal_state_info do
#    collection do
#      get "sorting_add"
#      get "sorting_toggle"
#      get "sorting_del"
#      get "change_order"
#    end
#  end
#
#  get	'/inkonsistenzen/links_hash', to: 'inkonsistenzen#links_hash'
#  get	'/inkonsistenzen/index_hash', to: 'inkonsistenzen#index_hash'
#  get	'/inkonsistenzen/detail_hash', to: 'inkonsistenzen#detail_hash'
#
#  get	'/csv', to: 'csv#index'
#  get	'/csv_export', to: 'csv_export#index'
#
#  get	'/xml/import', to: 'xml#import'
#  get	'/xml/export', to: 'xml#export'

  # 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.
  get ':controller(/:action(/:id))(.:format)'
  post ':controller(/:action(/:id))(.:format)'
  patch ':controller(/:action(/:id))(.:format)'
end
