Commit c4cf46a9 authored by Adam Niedzielski's avatar Adam Niedzielski

Limit generated project push rule routes to one route that is really used

parent 28baca8a
......@@ -175,7 +175,7 @@ constraints(ProjectUrlConstrainer.new) do
post :update_now
end
end
resources :push_rules, constraints: { id: /\d+/ }
resources :push_rules, constraints: { id: /\d+/ }, only: [:update]
## EE-specific
resources :pipelines, only: [:index, :new, :create, :show] do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment