Rails.application.routes.draw do
  resources :contacts, :only => [:index, :create]

  resources :products, :only => [:index, :show]

  get 'error/not_found'

  get 'about' => 'about#index'

  get 'home/index'

  namespace :admin do
    root 'home#index'
    resources :contacts
    resources :products
    resources :galleries
  end
  root 'home#index'

end
