From 444291423bf54ee9418e4cc370074fadb42f6c29 Mon Sep 17 00:00:00 2001
From: Mauricio Giacomini Girardello <mauriciogiacomini4@gmail.com>
Date: Tue, 20 Oct 2015 10:56:06 -0200
Subject: [PATCH] adding curator and admin routes

---
 config/routes.rb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/config/routes.rb b/config/routes.rb
index 5c066d27..84f9973f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -19,7 +19,15 @@ Rails.application.routes.draw do
       end
     end
 
-    resources :users
+    resources :users do
+      resource :admin, only: [:create, :destroy]
+      resource :curator, only: [:create, :destroy]
+
+      collection do
+        get :curators
+        get :admins
+      end
+    end
     resources :highlights
     resources :carousels
 
-- 
GitLab