You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
cryptcheck-rails/config/routes.rb

35 lines
864 B

Rails.application.routes.draw do
namespace :https, id: /[^\/]+/ do
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
namespace :smtp, id: /[^\/]+/ do
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
namespace :xmpp, id: /[^\/]+/ do
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
namespace :tls, id: /[^\/]+/ do
get '/', action: :index
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
namespace :ssh, id: /[^\/]+/ do
get '/', action: :index
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
get 'ciphers' => 'site#ciphers'
get 'suite' => 'site#suite_index'
get 'suite/:id' => 'site#suite'
post 'suite' => 'site#suite'
root 'site#index'
post '/' => 'site#check'
end