Rails.application.routes.draw do
  resources :articles, only: [:new, :create, :show] do
    resources :votes, only: %i[create destroy]
  end
  devise_for :users do
  end
  resources :categories, only: %i[new create show index]
  root 'categories#index'
  # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end
