lib/siteleaf/site.rb in siteleaf-0.9.11 vs lib/siteleaf/site.rb in siteleaf-0.9.12
- old
+ new
@@ -17,10 +17,10 @@
def resolve(url = '/')
Client.get "sites/#{self.id}/resolve", {"url" => url}
end
def preview(url = '/', template = nil)
- Client.post "sites/#{self.id}/preview.html", {"url" => url, "template" => template}
+ Client.post "sites/#{self.id}/preview", {"url" => url, "template" => template}
end
end
end
\ No newline at end of file