use the api v3 path helper

pull/4126/head
Jens Ulferts 9 years ago
parent cadc397239
commit 3de1b3583d
  1. 5
      lib/api/v3/work_packages/work_package_representer.rb

@ -239,7 +239,10 @@ module API
links :children do
visible_children.map do |child|
{ href: "#{root_path}api/v3/work_packages/#{child.id}", title: child.subject }
{
href: api_v3_paths.work_package(child.id),
title: child.subject
}
end unless visible_children.empty?
end

Loading…
Cancel
Save