view config/routes.rb @ 189:df86d579634e

secret_key_base isn't needed anymore
author nanaya <me@nanaya.pro>
date Sun, 14 Jul 2019 15:57:08 +0900
parents 5af9b537db86
children
line wrap: on
line source

Rails.application.routes.draw do
  root "tweets#index"

  get ":id/:name" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet"
  get ":name" => "tweets#redirect"
end