Rails.application.routes.draw do
  devise_for :users, path: '', path_names: { sign_in: 'login', sign_out: 'logout', sign_up: 'register'}
  mount RailsAdmin::Engine => '/admin', as: 'rails_admin'

  root to: 'application#home'

  resources :plants
  resources :planifications, only: [:create, :show, :destroy]

  get '/dashboard/(:year/:week)' => 'application#dashboard', as: :dashboard
  get '/calendar' => 'application#calendar'

end
