Kaynağa Gözat

Enable Sidekiq UI on development

master
aeris 10 ay önce
ebeveyn
işleme
d3c77b738a
1 değiştirilmiş dosya ile 36 ekleme ve 31 silme
  1. +36
    -31
      config/routes.rb

+ 36
- 31
config/routes.rb Dosyayı Görüntüle

@@ -1,39 +1,44 @@
Rails.application.routes.draw do
namespace :https, id: /[^\/]+/ do
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
end
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 :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 :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 :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
namespace :ssh, id: /[^\/]+/ do
get '/', action: :index
get ':id/', action: :show
get ':id/refresh', action: :refresh, as: :refresh
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 '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 'sites' => 'site#sites'
get 'sites' => 'site#sites'

if Rails.env.development?
require 'sidekiq/web'
mount Sidekiq::Web => '/sidekiq'
end
end

Yükleniyor…
İptal
Kaydet