From 76ec90799352603406728cb51b4e70913413f2bd Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 13 Dec 2016 13:42:10 +0100 Subject: Improved admin UI --- config/routes.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index cde84d3bc..2d70bdcea 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,8 +6,8 @@ Rails.application.routes.draw do mount ActionCable.server, at: 'cable' authenticate :user, lambda { |u| u.admin? } do - mount Sidekiq::Web, at: 'sidekiq' - mount PgHero::Engine, at: 'pghero' + mount Sidekiq::Web, at: 'sidekiq', as: :sidekiq + mount PgHero::Engine, at: 'pghero', as: :pghero end use_doorkeeper do @@ -46,6 +46,7 @@ Rails.application.routes.draw do namespace :admin do resources :pubsubhubbub, only: [:index] + resources :domain_blocks, only: [:index, :create] resources :accounts, only: [:index, :show, :update] do member do -- cgit