Commit 5559a68e authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch '284138-fix-endpoint-route-for-importing-requirementse' into 'master'

Fix requirements import authorize route to match Workhorse route

See merge request gitlab-org/gitlab!49594
parents d31464dd e537b1ea
......@@ -15,7 +15,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
resources :requirements, only: [:index] do
collection do
post :import_csv
post :authorize
post 'import_csv/authorize', to: 'requirements#authorize'
end
end
end
......
......@@ -115,7 +115,7 @@ RSpec.describe Projects::RequirementsManagement::RequirementsController do
describe 'POST #authorize' do
subject do
post authorize_project_requirements_management_requirements_path(project),
post import_csv_authorize_project_requirements_management_requirements_path(project),
headers: workhorse_headers
end
......
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