From e5c58b44ca8b736b4846b52aa8db18f4d3d014d2 Mon Sep 17 00:00:00 2001 From: Reuben Pereira Date: Wed, 6 Feb 2019 16:27:18 +0000 Subject: Add list_projects endpoint to error tracking --- config/routes/project.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes/project.rb b/config/routes/project.rb index d730479cf2b..b4ebc7df4fe 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -444,7 +444,11 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do end end - resources :error_tracking, only: [:index], controller: :error_tracking + resources :error_tracking, only: [:index], controller: :error_tracking do + collection do + post :list_projects + end + end # Since both wiki and repository routing contains wildcard characters # its preferable to keep it below all other project routes -- cgit v1.2.1