Commit 9c5a8d43 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Used new tree and blob entity path helpers

parent 215313aa
...@@ -12,6 +12,6 @@ class BlobEntity < Grape::Entity ...@@ -12,6 +12,6 @@ class BlobEntity < Grape::Entity
end end
expose :url do |blob| expose :url do |blob|
namespace_project_blob_path(request.project.namespace, request.project, File.join(request.ref, blob.path)) project_blob_path(request.project, File.join(request.ref, blob.path))
end end
end end
...@@ -12,6 +12,6 @@ class TreeEntity < Grape::Entity ...@@ -12,6 +12,6 @@ class TreeEntity < Grape::Entity
end end
expose :url do |tree| expose :url do |tree|
namespace_project_tree_path(request.project.namespace, request.project, File.join(request.ref, tree.path)) project_tree_path(request.project, File.join(request.ref, tree.path))
end end
end 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