Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

473 B
Raw Blame
Rails.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