Moved switch user method to accounts

This commit is contained in:
Sergei Tsõganov 2022-06-15 12:56:54 +03:00
parent 6c9fb2b025
commit de5872fb40
5 changed files with 26 additions and 23 deletions

View file

@ -83,6 +83,9 @@ Rails.application.routes.draw do
post 'update_auto_reload_balance'
get 'disable_auto_reload_balance'
end
member do
put 'switch_user'
end
end
resources :invoices, only: %i[index show] do
collection do
@ -117,7 +120,6 @@ Rails.application.routes.draw do
resources :auth, only: %i[index] do
collection do
post '/tara_callback', to: 'auth#tara_callback'
put '/switch_user', to: 'auth#switch_user'
end
end
end