Rails.application.routes.draw do
  resources :posts
  devise_for :users
  resources :posts, only:[:new, :create, :index]
  root to: "posts#index"
  # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end
