view config/routes.rb @ 190:7b1bdf697063

Add direct link for retweet
author nanaya <me@nanaya.pro>
date Sat, 27 Jul 2019 13:57:48 +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