From 9932a9cff0a2f09726049eb3c29aa2524e9e385d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Verg=C3=A9s?= Date: Sun, 12 Dec 2021 14:06:30 +0100 Subject: [PATCH] remove delayedjobweb --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 268d8b2..642888b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true Rails.application.routes.draw do - authenticated :user, ->(user) { user.admin? } do - mount DelayedJobWeb, at: "/delayed_job" + authenticate :user, ->(u) { u.admin? } do + mount Sidekiq::Web => "/sidekiq" end mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?