hanami-view/examples/rails/config/routes.rb

7 lines
140 B
Ruby

# frozen_string_literal: true
Rails.application.routes.draw do
resources :articles, only: %i[index show]
root to: "articles#index"
end