Rails.application.routes.draw do
  root to: "main#index"

  namespace :api do
    namespace :v1 do
      resources :categories
      resources :tags
      resources :users
      resources :posts
    end
  end
end
