BigW Consortium Gitlab

Used new tree and blob entity path helpers

parent 215313aa
......@@ -12,6 +12,6 @@ class BlobEntity < Grape::Entity
end
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
......@@ -12,6 +12,6 @@ class TreeEntity < Grape::Entity
end
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
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