2017-10-04 15:16:17 +08:00
|
|
|
# users
|
|
|
|
get '/current_user_info', to: 'users/users#current_user_info'
|
|
|
|
|
|
|
|
namespace :users do
|
2017-10-09 16:41:36 +08:00
|
|
|
get '/sign_out_user', to: 'users#sign_out_user'
|
2017-10-04 15:16:17 +08:00
|
|
|
delete '/remove_user', to: 'user_teams#remove_user'
|
|
|
|
delete '/leave_team', to: 'user_teams#leave_team'
|
|
|
|
put '/update_role', to: 'user_teams#update_role'
|
|
|
|
get '/profile_info', to: 'users#profile_info'
|
|
|
|
get '/preferences_info', to: 'users#preferences_info'
|
2017-10-06 21:54:52 +08:00
|
|
|
get '/statistics_info', to: 'users#statistics_info'
|
|
|
|
post '/update', to: 'users#update'
|
2017-10-04 15:16:17 +08:00
|
|
|
devise_scope :user do
|
|
|
|
put '/invite_users', to: 'invitations#invite_users'
|
|
|
|
end
|
|
|
|
end
|