2018-02-26 16:10:12 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require "isolation/abstract_unit"
|
|
|
|
require "rails/command"
|
|
|
|
require "rails/commands/routes/routes_command"
|
2018-03-03 08:50:01 -05:00
|
|
|
require "io/console/size"
|
2018-02-26 16:10:12 -05:00
|
|
|
|
|
|
|
class Rails::Command::RoutesTest < ActiveSupport::TestCase
|
|
|
|
setup :build_app
|
|
|
|
teardown :teardown_app
|
|
|
|
|
2018-03-01 06:44:05 -05:00
|
|
|
test "singular resource output in rails routes" do
|
2018-02-26 16:10:12 -05:00
|
|
|
app_file "config/routes.rb", <<-RUBY
|
|
|
|
Rails.application.routes.draw do
|
|
|
|
resource :post
|
2018-08-14 20:50:25 -04:00
|
|
|
resource :user_permission
|
2018-02-26 16:10:12 -05:00
|
|
|
end
|
|
|
|
RUBY
|
|
|
|
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal <<~OUTPUT, run_routes_command([ "-c", "PostController" ])
|
2018-12-31 18:16:44 -05:00
|
|
|
Prefix Verb URI Pattern Controller#Action
|
|
|
|
new_post GET /post/new(.:format) posts#new
|
|
|
|
edit_post GET /post/edit(.:format) posts#edit
|
|
|
|
post GET /post(.:format) posts#show
|
|
|
|
PATCH /post(.:format) posts#update
|
|
|
|
PUT /post(.:format) posts#update
|
|
|
|
DELETE /post(.:format) posts#destroy
|
|
|
|
POST /post(.:format) posts#create
|
|
|
|
rails_postmark_inbound_emails POST /rails/action_mailbox/postmark/inbound_emails(.:format) action_mailbox/ingresses/postmark/inbound_emails#create
|
2018-12-24 15:16:22 -05:00
|
|
|
OUTPUT
|
|
|
|
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal <<~OUTPUT, run_routes_command([ "-c", "UserPermissionController" ])
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix Verb URI Pattern Controller#Action
|
|
|
|
new_user_permission GET /user_permission/new(.:format) user_permissions#new
|
|
|
|
edit_user_permission GET /user_permission/edit(.:format) user_permissions#edit
|
|
|
|
user_permission GET /user_permission(.:format) user_permissions#show
|
|
|
|
PATCH /user_permission(.:format) user_permissions#update
|
|
|
|
PUT /user_permission(.:format) user_permissions#update
|
|
|
|
DELETE /user_permission(.:format) user_permissions#destroy
|
|
|
|
POST /user_permission(.:format) user_permissions#create
|
|
|
|
OUTPUT
|
2018-02-26 16:10:12 -05:00
|
|
|
end
|
|
|
|
|
2018-03-01 06:44:05 -05:00
|
|
|
test "rails routes with global search key" do
|
2018-02-26 16:10:12 -05:00
|
|
|
app_file "config/routes.rb", <<-RUBY
|
|
|
|
Rails.application.routes.draw do
|
|
|
|
get '/cart', to: 'cart#show'
|
|
|
|
post '/cart', to: 'cart#create'
|
|
|
|
get '/basketballs', to: 'basketball#index'
|
|
|
|
end
|
|
|
|
RUBY
|
|
|
|
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal <<~MESSAGE, run_routes_command([ "-g", "show" ])
|
2020-05-11 16:21:58 -04:00
|
|
|
Prefix Verb URI Pattern Controller#Action
|
|
|
|
cart GET /cart(.:format) cart#show
|
|
|
|
rails_conductor_inbound_email GET /rails/conductor/action_mailbox/inbound_emails/:id(.:format) rails/conductor/action_mailbox/inbound_emails#show
|
|
|
|
rails_service_blob GET /rails/active_storage/blobs/redirect/:signed_id/*filename(.:format) active_storage/blobs/redirect#show
|
|
|
|
rails_service_blob_proxy GET /rails/active_storage/blobs/proxy/:signed_id/*filename(.:format) active_storage/blobs/proxy#show
|
2020-05-21 13:00:56 -04:00
|
|
|
GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs/redirect#show
|
2020-05-11 16:21:58 -04:00
|
|
|
rails_blob_representation GET /rails/active_storage/representations/redirect/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations/redirect#show
|
|
|
|
rails_blob_representation_proxy GET /rails/active_storage/representations/proxy/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations/proxy#show
|
2020-05-21 13:00:56 -04:00
|
|
|
GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations/redirect#show
|
2020-05-11 16:21:58 -04:00
|
|
|
rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show
|
2018-02-26 16:10:12 -05:00
|
|
|
MESSAGE
|
|
|
|
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal <<~MESSAGE, run_routes_command([ "-g", "POST" ])
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix Verb URI Pattern Controller#Action
|
|
|
|
POST /cart(.:format) cart#create
|
2018-12-31 18:16:44 -05:00
|
|
|
rails_postmark_inbound_emails POST /rails/action_mailbox/postmark/inbound_emails(.:format) action_mailbox/ingresses/postmark/inbound_emails#create
|
2019-01-12 21:38:26 -05:00
|
|
|
rails_relay_inbound_emails POST /rails/action_mailbox/relay/inbound_emails(.:format) action_mailbox/ingresses/relay/inbound_emails#create
|
2018-12-24 15:16:22 -05:00
|
|
|
rails_sendgrid_inbound_emails POST /rails/action_mailbox/sendgrid/inbound_emails(.:format) action_mailbox/ingresses/sendgrid/inbound_emails#create
|
2020-03-22 14:26:13 -04:00
|
|
|
rails_mandrill_inbound_emails POST /rails/action_mailbox/mandrill/inbound_emails(.:format) action_mailbox/ingresses/mandrill/inbound_emails#create
|
2018-12-24 15:16:22 -05:00
|
|
|
rails_mailgun_inbound_emails POST /rails/action_mailbox/mailgun/inbound_emails/mime(.:format) action_mailbox/ingresses/mailgun/inbound_emails#create
|
|
|
|
POST /rails/conductor/action_mailbox/inbound_emails(.:format) rails/conductor/action_mailbox/inbound_emails#create
|
2020-03-31 19:46:13 -04:00
|
|
|
rails_conductor_inbound_email_sources POST /rails/conductor/action_mailbox/inbound_emails/sources(.:format) rails/conductor/action_mailbox/inbound_emails/sources#create
|
2018-12-24 15:16:22 -05:00
|
|
|
rails_conductor_inbound_email_reroute POST /rails/conductor/action_mailbox/:inbound_email_id/reroute(.:format) rails/conductor/action_mailbox/reroutes#create
|
|
|
|
rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
|
2018-02-26 16:10:12 -05:00
|
|
|
MESSAGE
|
|
|
|
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal <<~MESSAGE, run_routes_command([ "-g", "basketballs" ])
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix Verb URI Pattern Controller#Action
|
|
|
|
basketballs GET /basketballs(.:format) basketball#index
|
|
|
|
MESSAGE
|
2018-02-26 16:10:12 -05:00
|
|
|
end
|
|
|
|
|
2018-03-01 06:44:05 -05:00
|
|
|
test "rails routes with controller search key" do
|
2018-02-26 16:10:12 -05:00
|
|
|
app_file "config/routes.rb", <<-RUBY
|
2018-03-13 15:51:29 -04:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
get '/cart', to: 'cart#show'
|
|
|
|
get '/basketball', to: 'basketball#index'
|
2018-08-14 20:50:25 -04:00
|
|
|
get '/user_permission', to: 'user_permission#index'
|
2018-03-13 15:51:29 -04:00
|
|
|
end
|
2018-02-26 16:10:12 -05:00
|
|
|
RUBY
|
|
|
|
|
2018-08-14 20:50:25 -04:00
|
|
|
expected_cart_output = "Prefix Verb URI Pattern Controller#Action\n cart GET /cart(.:format) cart#show\n"
|
2018-02-26 16:10:12 -05:00
|
|
|
output = run_routes_command(["-c", "cart"])
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal expected_cart_output, output
|
2018-02-26 16:10:12 -05:00
|
|
|
|
2018-03-05 08:07:33 -05:00
|
|
|
output = run_routes_command(["-c", "Cart"])
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal expected_cart_output, output
|
2018-02-26 16:10:12 -05:00
|
|
|
|
|
|
|
output = run_routes_command(["-c", "CartController"])
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal expected_cart_output, output
|
2018-08-14 20:50:25 -04:00
|
|
|
|
|
|
|
expected_perm_output = [" Prefix Verb URI Pattern Controller#Action",
|
|
|
|
"user_permission GET /user_permission(.:format) user_permission#index\n"].join("\n")
|
|
|
|
output = run_routes_command(["-c", "user_permission"])
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal expected_perm_output, output
|
2018-08-14 20:50:25 -04:00
|
|
|
|
|
|
|
output = run_routes_command(["-c", "UserPermission"])
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal expected_perm_output, output
|
2018-08-14 20:50:25 -04:00
|
|
|
|
|
|
|
output = run_routes_command(["-c", "UserPermissionController"])
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal expected_perm_output, output
|
2018-02-26 16:10:12 -05:00
|
|
|
end
|
|
|
|
|
2018-03-01 06:44:05 -05:00
|
|
|
test "rails routes with namespaced controller search key" do
|
2018-02-26 16:10:12 -05:00
|
|
|
app_file "config/routes.rb", <<-RUBY
|
2018-03-13 15:51:29 -04:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
namespace :admin do
|
|
|
|
resource :post
|
2018-08-14 20:50:25 -04:00
|
|
|
resource :user_permission
|
2018-02-26 16:10:12 -05:00
|
|
|
end
|
2018-03-13 15:51:29 -04:00
|
|
|
end
|
2018-02-26 16:10:12 -05:00
|
|
|
RUBY
|
2018-03-13 15:51:29 -04:00
|
|
|
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal <<~OUTPUT, run_routes_command([ "-c", "Admin::PostController" ])
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix Verb URI Pattern Controller#Action
|
|
|
|
new_admin_post GET /admin/post/new(.:format) admin/posts#new
|
|
|
|
edit_admin_post GET /admin/post/edit(.:format) admin/posts#edit
|
|
|
|
admin_post GET /admin/post(.:format) admin/posts#show
|
|
|
|
PATCH /admin/post(.:format) admin/posts#update
|
|
|
|
PUT /admin/post(.:format) admin/posts#update
|
|
|
|
DELETE /admin/post(.:format) admin/posts#destroy
|
|
|
|
POST /admin/post(.:format) admin/posts#create
|
|
|
|
OUTPUT
|
|
|
|
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal <<~OUTPUT, run_routes_command([ "-c", "PostController" ])
|
2018-12-31 18:16:44 -05:00
|
|
|
Prefix Verb URI Pattern Controller#Action
|
|
|
|
new_admin_post GET /admin/post/new(.:format) admin/posts#new
|
|
|
|
edit_admin_post GET /admin/post/edit(.:format) admin/posts#edit
|
|
|
|
admin_post GET /admin/post(.:format) admin/posts#show
|
|
|
|
PATCH /admin/post(.:format) admin/posts#update
|
|
|
|
PUT /admin/post(.:format) admin/posts#update
|
|
|
|
DELETE /admin/post(.:format) admin/posts#destroy
|
|
|
|
POST /admin/post(.:format) admin/posts#create
|
|
|
|
rails_postmark_inbound_emails POST /rails/action_mailbox/postmark/inbound_emails(.:format) action_mailbox/ingresses/postmark/inbound_emails#create
|
2018-12-24 15:16:22 -05:00
|
|
|
OUTPUT
|
|
|
|
|
|
|
|
expected_permission_output = <<~OUTPUT
|
|
|
|
Prefix Verb URI Pattern Controller#Action
|
|
|
|
new_admin_user_permission GET /admin/user_permission/new(.:format) admin/user_permissions#new
|
|
|
|
edit_admin_user_permission GET /admin/user_permission/edit(.:format) admin/user_permissions#edit
|
|
|
|
admin_user_permission GET /admin/user_permission(.:format) admin/user_permissions#show
|
|
|
|
PATCH /admin/user_permission(.:format) admin/user_permissions#update
|
|
|
|
PUT /admin/user_permission(.:format) admin/user_permissions#update
|
|
|
|
DELETE /admin/user_permission(.:format) admin/user_permissions#destroy
|
|
|
|
POST /admin/user_permission(.:format) admin/user_permissions#create
|
|
|
|
OUTPUT
|
|
|
|
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal expected_permission_output, run_routes_command([ "-c", "Admin::UserPermissionController" ])
|
|
|
|
assert_equal expected_permission_output, run_routes_command([ "-c", "UserPermissionController" ])
|
2018-02-26 16:10:12 -05:00
|
|
|
end
|
|
|
|
|
2018-03-01 06:44:05 -05:00
|
|
|
test "rails routes displays message when no routes are defined" do
|
2018-02-26 16:10:12 -05:00
|
|
|
app_file "config/routes.rb", <<-RUBY
|
2018-03-13 15:51:29 -04:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
end
|
2018-02-26 16:10:12 -05:00
|
|
|
RUBY
|
|
|
|
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal <<~MESSAGE, run_routes_command
|
2020-05-11 16:21:58 -04:00
|
|
|
Prefix Verb URI Pattern Controller#Action
|
|
|
|
rails_postmark_inbound_emails POST /rails/action_mailbox/postmark/inbound_emails(.:format) action_mailbox/ingresses/postmark/inbound_emails#create
|
|
|
|
rails_relay_inbound_emails POST /rails/action_mailbox/relay/inbound_emails(.:format) action_mailbox/ingresses/relay/inbound_emails#create
|
|
|
|
rails_sendgrid_inbound_emails POST /rails/action_mailbox/sendgrid/inbound_emails(.:format) action_mailbox/ingresses/sendgrid/inbound_emails#create
|
|
|
|
rails_mandrill_inbound_health_check GET /rails/action_mailbox/mandrill/inbound_emails(.:format) action_mailbox/ingresses/mandrill/inbound_emails#health_check
|
|
|
|
rails_mandrill_inbound_emails POST /rails/action_mailbox/mandrill/inbound_emails(.:format) action_mailbox/ingresses/mandrill/inbound_emails#create
|
|
|
|
rails_mailgun_inbound_emails POST /rails/action_mailbox/mailgun/inbound_emails/mime(.:format) action_mailbox/ingresses/mailgun/inbound_emails#create
|
|
|
|
rails_conductor_inbound_emails GET /rails/conductor/action_mailbox/inbound_emails(.:format) rails/conductor/action_mailbox/inbound_emails#index
|
|
|
|
POST /rails/conductor/action_mailbox/inbound_emails(.:format) rails/conductor/action_mailbox/inbound_emails#create
|
|
|
|
new_rails_conductor_inbound_email GET /rails/conductor/action_mailbox/inbound_emails/new(.:format) rails/conductor/action_mailbox/inbound_emails#new
|
|
|
|
edit_rails_conductor_inbound_email GET /rails/conductor/action_mailbox/inbound_emails/:id/edit(.:format) rails/conductor/action_mailbox/inbound_emails#edit
|
|
|
|
rails_conductor_inbound_email GET /rails/conductor/action_mailbox/inbound_emails/:id(.:format) rails/conductor/action_mailbox/inbound_emails#show
|
|
|
|
PATCH /rails/conductor/action_mailbox/inbound_emails/:id(.:format) rails/conductor/action_mailbox/inbound_emails#update
|
|
|
|
PUT /rails/conductor/action_mailbox/inbound_emails/:id(.:format) rails/conductor/action_mailbox/inbound_emails#update
|
|
|
|
DELETE /rails/conductor/action_mailbox/inbound_emails/:id(.:format) rails/conductor/action_mailbox/inbound_emails#destroy
|
|
|
|
new_rails_conductor_inbound_email_source GET /rails/conductor/action_mailbox/inbound_emails/sources/new(.:format) rails/conductor/action_mailbox/inbound_emails/sources#new
|
|
|
|
rails_conductor_inbound_email_sources POST /rails/conductor/action_mailbox/inbound_emails/sources(.:format) rails/conductor/action_mailbox/inbound_emails/sources#create
|
|
|
|
rails_conductor_inbound_email_reroute POST /rails/conductor/action_mailbox/:inbound_email_id/reroute(.:format) rails/conductor/action_mailbox/reroutes#create
|
|
|
|
rails_service_blob GET /rails/active_storage/blobs/redirect/:signed_id/*filename(.:format) active_storage/blobs/redirect#show
|
|
|
|
rails_service_blob_proxy GET /rails/active_storage/blobs/proxy/:signed_id/*filename(.:format) active_storage/blobs/proxy#show
|
2020-05-21 13:00:56 -04:00
|
|
|
GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs/redirect#show
|
2020-05-11 16:21:58 -04:00
|
|
|
rails_blob_representation GET /rails/active_storage/representations/redirect/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations/redirect#show
|
|
|
|
rails_blob_representation_proxy GET /rails/active_storage/representations/proxy/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations/proxy#show
|
2020-05-21 13:00:56 -04:00
|
|
|
GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations/redirect#show
|
2020-05-11 16:21:58 -04:00
|
|
|
rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show
|
|
|
|
update_rails_disk_service PUT /rails/active_storage/disk/:encoded_token(.:format) active_storage/disk#update
|
|
|
|
rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
|
2018-02-26 16:10:12 -05:00
|
|
|
MESSAGE
|
|
|
|
end
|
|
|
|
|
2018-03-01 06:44:05 -05:00
|
|
|
test "rails routes with expanded option" do
|
2018-12-20 12:44:01 -05:00
|
|
|
app_file "config/routes.rb", <<-RUBY
|
2018-12-24 15:16:22 -05:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
get '/cart', to: 'cart#show'
|
|
|
|
end
|
|
|
|
RUBY
|
|
|
|
|
2019-08-14 13:39:55 -04:00
|
|
|
output = IO.stub(:console_size, [0, 27]) do
|
|
|
|
run_routes_command([ "--expanded" ])
|
|
|
|
end
|
|
|
|
|
2018-12-24 15:16:22 -05:00
|
|
|
# rubocop:disable Layout/TrailingWhitespace
|
2019-12-25 01:07:59 -05:00
|
|
|
assert_equal <<~MESSAGE, output
|
2018-12-24 15:16:22 -05:00
|
|
|
--[ Route 1 ]--------------
|
|
|
|
Prefix | cart
|
|
|
|
Verb | GET
|
|
|
|
URI | /cart(.:format)
|
|
|
|
Controller#Action | cart#show
|
|
|
|
--[ Route 2 ]--------------
|
2018-12-31 18:16:44 -05:00
|
|
|
Prefix | rails_postmark_inbound_emails
|
|
|
|
Verb | POST
|
|
|
|
URI | /rails/action_mailbox/postmark/inbound_emails(.:format)
|
|
|
|
Controller#Action | action_mailbox/ingresses/postmark/inbound_emails#create
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 3 ]--------------
|
2019-01-12 21:38:26 -05:00
|
|
|
Prefix | rails_relay_inbound_emails
|
|
|
|
Verb | POST
|
|
|
|
URI | /rails/action_mailbox/relay/inbound_emails(.:format)
|
|
|
|
Controller#Action | action_mailbox/ingresses/relay/inbound_emails#create
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 4 ]--------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | rails_sendgrid_inbound_emails
|
|
|
|
Verb | POST
|
|
|
|
URI | /rails/action_mailbox/sendgrid/inbound_emails(.:format)
|
|
|
|
Controller#Action | action_mailbox/ingresses/sendgrid/inbound_emails#create
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 5 ]--------------
|
|
|
|
Prefix | rails_mandrill_inbound_health_check
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/action_mailbox/mandrill/inbound_emails(.:format)
|
|
|
|
Controller#Action | action_mailbox/ingresses/mandrill/inbound_emails#health_check
|
2019-04-14 12:15:54 -04:00
|
|
|
--[ Route 6 ]--------------
|
2020-03-22 14:26:13 -04:00
|
|
|
Prefix | rails_mandrill_inbound_emails
|
|
|
|
Verb | POST
|
|
|
|
URI | /rails/action_mailbox/mandrill/inbound_emails(.:format)
|
|
|
|
Controller#Action | action_mailbox/ingresses/mandrill/inbound_emails#create
|
|
|
|
--[ Route 7 ]--------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | rails_mailgun_inbound_emails
|
|
|
|
Verb | POST
|
|
|
|
URI | /rails/action_mailbox/mailgun/inbound_emails/mime(.:format)
|
|
|
|
Controller#Action | action_mailbox/ingresses/mailgun/inbound_emails#create
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 8 ]--------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | rails_conductor_inbound_emails
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails#index
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 9 ]--------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix |
|
|
|
|
Verb | POST
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails#create
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 10 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | new_rails_conductor_inbound_email
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails/new(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails#new
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 11 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | edit_rails_conductor_inbound_email
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails/:id/edit(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails#edit
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 12 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | rails_conductor_inbound_email
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails/:id(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails#show
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 13 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix |
|
|
|
|
Verb | PATCH
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails/:id(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails#update
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 14 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix |
|
|
|
|
Verb | PUT
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails/:id(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails#update
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 15 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix |
|
|
|
|
Verb | DELETE
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails/:id(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails#destroy
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 16 ]-------------
|
2020-03-31 19:46:13 -04:00
|
|
|
Prefix | new_rails_conductor_inbound_email_source
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails/sources/new(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails/sources#new
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 17 ]-------------
|
2020-03-31 19:46:13 -04:00
|
|
|
Prefix | rails_conductor_inbound_email_sources
|
|
|
|
Verb | POST
|
|
|
|
URI | /rails/conductor/action_mailbox/inbound_emails/sources(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/inbound_emails/sources#create
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 18 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | rails_conductor_inbound_email_reroute
|
|
|
|
Verb | POST
|
|
|
|
URI | /rails/conductor/action_mailbox/:inbound_email_id/reroute(.:format)
|
|
|
|
Controller#Action | rails/conductor/action_mailbox/reroutes#create
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 19 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | rails_service_blob
|
|
|
|
Verb | GET
|
2020-05-11 16:21:58 -04:00
|
|
|
URI | /rails/active_storage/blobs/redirect/:signed_id/*filename(.:format)
|
|
|
|
Controller#Action | active_storage/blobs/redirect#show
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 20 ]-------------
|
2020-05-11 16:21:58 -04:00
|
|
|
Prefix | rails_service_blob_proxy
|
2018-12-24 15:16:22 -05:00
|
|
|
Verb | GET
|
2020-05-11 16:21:58 -04:00
|
|
|
URI | /rails/active_storage/blobs/proxy/:signed_id/*filename(.:format)
|
|
|
|
Controller#Action | active_storage/blobs/proxy#show
|
2020-03-22 14:26:13 -04:00
|
|
|
--[ Route 21 ]-------------
|
2020-05-21 13:00:56 -04:00
|
|
|
Prefix |
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/active_storage/blobs/:signed_id/*filename(.:format)
|
|
|
|
Controller#Action | active_storage/blobs/redirect#show
|
|
|
|
--[ Route 22 ]-------------
|
2020-05-11 16:21:58 -04:00
|
|
|
Prefix | rails_blob_representation
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/active_storage/representations/redirect/:signed_blob_id/:variation_key/*filename(.:format)
|
|
|
|
Controller#Action | active_storage/representations/redirect#show
|
2020-05-21 13:00:56 -04:00
|
|
|
--[ Route 23 ]-------------
|
2020-05-11 16:21:58 -04:00
|
|
|
Prefix | rails_blob_representation_proxy
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/active_storage/representations/proxy/:signed_blob_id/:variation_key/*filename(.:format)
|
|
|
|
Controller#Action | active_storage/representations/proxy#show
|
2020-05-21 13:00:56 -04:00
|
|
|
--[ Route 24 ]-------------
|
|
|
|
Prefix |
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format)
|
|
|
|
Controller#Action | active_storage/representations/redirect#show
|
|
|
|
--[ Route 25 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | rails_disk_service
|
|
|
|
Verb | GET
|
|
|
|
URI | /rails/active_storage/disk/:encoded_key/*filename(.:format)
|
|
|
|
Controller#Action | active_storage/disk#show
|
2020-05-21 13:00:56 -04:00
|
|
|
--[ Route 26 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | update_rails_disk_service
|
|
|
|
Verb | PUT
|
|
|
|
URI | /rails/active_storage/disk/:encoded_token(.:format)
|
|
|
|
Controller#Action | active_storage/disk#update
|
2020-05-21 13:00:56 -04:00
|
|
|
--[ Route 27 ]-------------
|
2018-12-24 15:16:22 -05:00
|
|
|
Prefix | rails_direct_uploads
|
|
|
|
Verb | POST
|
|
|
|
URI | /rails/active_storage/direct_uploads(.:format)
|
|
|
|
Controller#Action | active_storage/direct_uploads#create
|
|
|
|
MESSAGE
|
|
|
|
# rubocop:enable Layout/TrailingWhitespace
|
2018-02-25 12:25:55 -05:00
|
|
|
end
|
|
|
|
|
2018-02-26 16:10:12 -05:00
|
|
|
private
|
|
|
|
def run_routes_command(args = [])
|
|
|
|
rails "routes", args
|
|
|
|
end
|
|
|
|
end
|