aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-11 21:09:06 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-11 21:09:06 +0000
commit634cf4ee06a4820eaa2431a272b9a223118cf884 (patch)
tree2e49854aa28062c9c68fdbe0e554459469098d61 /config/routes.rb
parentb4acbcadc7b4f73efe0580be2dd3cf1dbe342682 (diff)
Adds is_admin to the User model and ensures only admin users can add new resource
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 66bd997..3cf676f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,6 @@
Rails.application.routes.draw do
resources :pdfresources
+ resources :users
resource :session
resources :passwords, param: :token
resource :registration, only: [:new, :create]