Skip to content

Commit

Permalink
Added amin user priveledge requirement to resource list route
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalker2398 committed Feb 12, 2024
1 parent 2c7d0a9 commit d9ad588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d9ad588

Please sign in to comment.