From d9ad5882bcc8b81de7649fc6bbdab1b6a3bf3581 Mon Sep 17 00:00:00 2001 From: Nathan Alexander Walker Date: Mon, 12 Feb 2024 16:17:52 -0500 Subject: [PATCH] Added amin user priveledge requirement to resource list route --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 39d6be0..d5989cc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,7 +5,6 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html root 'pages#home' - get 'admin/resources', to: 'pages#home' devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' } devise_scope :user do @@ -22,6 +21,7 @@ constraints resque_web_constraint do mount Resque::Server.new, at: '/resque' + get 'admin/resources', to: 'pages#home' end namespace :api do