gitlab-org--gitlab-foss/lib/api/v3/helpers.rb
Timothy Andrew dd99622347
API routes referencing a specific issue should use the issue iid
- As opposed to the issue `id` that was previously being used.
- This brings the API routes closer to the web interface's routes.
- This is specific to API v4.
2017-03-07 13:06:42 +05:30

9 lines
180 B
Ruby

module API
module V3
module Helpers
def find_project_issue(id)
IssuesFinder.new(current_user, project_id: user_project.id).find(id)
end
end
end
end