OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/modules/avatars/config/routes.rb

14 lines
480 B

OpenProject::Application.routes.draw do
# Update my avatar
scope 'my' do
resource :avatar, controller: 'avatars/my_avatar', as: 'edit_my_avatar', only: %i[show update destroy]
end
# Get the current avatar
get '/users/:id/avatar', controller: 'avatars/avatar', action: :show, as: 'user_avatar'
# Update another user's avatar
scope 'users/:id' do
resource :avatar, controller: 'avatars/users', as: 'edit_user_avatar', only: %i[show update destroy]
end
end