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

Fix comment

Oliver Güntherf1580405ba5e
diff --git a/config/routes.rb b/config/routes.rb
index a38d504bdd1..1538ae4a38c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -167,12 +167,13 @@ Rails.application.routes.draw do
resource :wiki_menu_item, only: %i[edit update]
end
+ # generic route for adding/removing watchers
scope ":object_type/:object_id", constraints: OpenProject::Acts::Watchable::Routes do
post "/watch" => "watchers#watch"
delete "/unwatch" => "watchers#unwatch"
end
- # generic route for adding/removing watchers and favorites.
+ # generic route for adding/removing favorites
scope ":object_type/:object_id", constraints: OpenProject::Acts::Favorable::Routes do
post "/favorite" => "favorites#favorite"
delete "/favorite" => "favorites#unfavorite"