Bläddra i källkod

suppression des routes admin

Lou 2 år sedan
förälder
incheckning
75e466981f
2 ändrade filer med 0 tillägg och 8 borttagningar
  1. 0
    7
      config/routes.rb
  2. 0
    1
      test/controllers/api/v1/users_controller_test.rb

+ 0
- 7
config/routes.rb Visa fil

8
       end
8
       end
9
       resources :tasks
9
       resources :tasks
10
     end
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
   end
11
   end
19
 end
12
 end

+ 0
- 1
test/controllers/api/v1/users_controller_test.rb Visa fil

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

Loading…
Avbryt
Spara