./lib/dolt/sinatra/actions.rb in dolt-0.2.1 vs ./lib/dolt/sinatra/actions.rb in dolt-0.2.2
- old
+ new
@@ -75,8 +75,16 @@
return error(err) if !err.nil?
response["Content-Type"] = "text/html"
body(renderer.render(:commits, data))
end
end
+
+ def refs(repo)
+ actions.refs(repo) do |err, data|
+ return error(err) if !err.nil?
+ response["Content-Type"] = "application/json"
+ body(renderer.render(:refs, data, :layout => nil))
+ end
+ end
end
end
end