cryptcheck-rails/config/routes.rb

30 lines
633 B
Ruby
Raw Normal View History

2015-08-22 21:55:40 +00:00
Rails.application.routes.draw do
2015-08-27 21:39:14 +00:00
get 'ssh/show'
get 'ssh/index'
2015-08-26 12:30:46 +00:00
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
2015-08-27 21:39:14 +00:00
namespace :ssh, id: /[^\/]*/ do
get '/', action: :index
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
2015-08-22 21:55:40 +00:00
root 'site#index'
2015-08-26 12:30:46 +00:00
get '/ciphers' => 'site#ciphers'
2015-08-22 21:55:40 +00:00
end