Browse Source

suppression des routes admin

Lou 3 years ago
parent
commit
75e466981f
2 changed files with 0 additions and 8 deletions
  1. 0
    7
      config/routes.rb
  2. 0
    1
      test/controllers/api/v1/users_controller_test.rb

+ 0
- 7
config/routes.rb View File

@@ -8,12 +8,5 @@ Rails.application.routes.draw do
8 8
       end
9 9
       resources :tasks
10 10
     end
11
-    namespace :admin do
12
-      resources :users
13
-      resources :token, only: %i[create]
14
-      resources :activities do
15
-        resources :tasks
16
-      end
17
-    end
18 11
   end
19 12
 end

+ 0
- 1
test/controllers/api/v1/users_controller_test.rb View File

@@ -3,7 +3,6 @@ require "test_helper"
3 3
 class Api::V1::UsersControllerTest < ActionDispatch::IntegrationTest
4 4
   setup do
5 5
     @user = users(:one)
6
-    @admin = users(:admin)
7 6
   end
8 7
 
9 8
   # INDEX

Loading…
Cancel
Save