Sha256: 5958ce03ddbcc280f07a8eed02f68f556b6a9a76580d62273dadd42d4d47ebbd

Contents?: true

Size: 418 Bytes

Versions: 2

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
letter_opener_web-1.4.1 config/routes.rb
letter_opener_web-1.4.0 config/routes.rb