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.
 
 
 
 
 
 

28 lines
761 B

Rails.application.routes.draw do
%i[https smtp xmpp tls ssh].each do |type|
namespace type, id: /[^\/]+/ do
get '/', action: :index
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
end
get 'help' => 'site#help'
get 'about' => 'site#about'
get 'ciphers' => 'site#ciphers'
get 'suite' => 'site#suite_index'
get 'suite/:id' => 'site#suite'
post 'suite' => 'site#suite'
root 'site#index'
post '/' => 'site#check'
get 'statistics/', to: 'statistics#index', as: 'statisticts'
get 'statistics/grade/:service', to: 'statistics#grade', as: 'stats_grade'
get 'sites' => 'site#sites'
if Rails.env.development?
require 'sidekiq/web'
mount Sidekiq::Web => '/sidekiq'
end
end