Sha256: 8f25dd9274250782dffd869d552e21f1f2a5ad311f5fe9de6d0acce9045de18a

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

Rails.application.routes.draw do
  delete 'clear'                 => 'letter_opener_web/letters#clear'
  delete ':id'                   => 'letter_opener_web/letters#destroy',   :as => :delete_letter
  get    '/'                     => 'letter_opener_web/letters#index',     :as => :letters
  get    ':id(/:style)'          => 'letter_opener_web/letters#show',      :as => :letter
  get    ':id/attachments/:file' => 'letter_opener_web/letters#attachment'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
letter_opener_web-1.3.1 spec/internal/config/routes.rb
letter_opener_web-1.3.0 spec/internal/config/routes.rb