2016-10-05 08:21:27 -04:00
|
|
|
resource :profile, only: [:show, :update] do
|
|
|
|
member do
|
|
|
|
get :audit_log
|
|
|
|
get :applications, to: 'oauth/applications#index'
|
|
|
|
|
|
|
|
put :reset_private_token
|
2016-08-19 19:33:46 -04:00
|
|
|
put :reset_incoming_email_token
|
2016-10-05 08:21:27 -04:00
|
|
|
put :update_username
|
|
|
|
end
|
|
|
|
|
|
|
|
scope module: :profiles do
|
|
|
|
resource :account, only: [:show] do
|
|
|
|
member do
|
|
|
|
delete :unlink
|
|
|
|
end
|
|
|
|
end
|
|
|
|
resource :notifications, only: [:show, :update]
|
|
|
|
resource :password, only: [:new, :create, :edit, :update] do
|
|
|
|
member do
|
|
|
|
put :reset
|
|
|
|
end
|
|
|
|
end
|
|
|
|
resource :preferences, only: [:show, :update]
|
2017-02-24 07:18:07 -05:00
|
|
|
resources :keys, only: [:index, :show, :create, :destroy]
|
2016-10-05 08:21:27 -04:00
|
|
|
resources :emails, only: [:index, :create, :destroy]
|
2016-11-13 14:35:47 -05:00
|
|
|
resources :chat_names, only: [:index, :new, :create, :destroy] do
|
|
|
|
collection do
|
|
|
|
delete :deny
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-10-05 08:21:27 -04:00
|
|
|
resource :avatar, only: [:destroy]
|
|
|
|
|
|
|
|
resources :personal_access_tokens, only: [:index, :create] do
|
|
|
|
member do
|
|
|
|
put :revoke
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resource :two_factor_auth, only: [:show, :create, :destroy] do
|
|
|
|
member do
|
|
|
|
post :create_u2f
|
|
|
|
post :codes
|
|
|
|
patch :skip
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :u2f_registrations, only: [:destroy]
|
|
|
|
end
|
|
|
|
end
|