Skip to content

Commit 8a6d29a

Browse files
authored
Merge pull request #36 from asgoel/minor_template_fix
[template] remove extra leading slash
2 parents c79c8d1 + 00f21d8 commit 8a6d29a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/template.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ defmodule SparkPost.Template do
4040
end
4141
body = %{substitution_data: substitution_data}
4242
:post
43-
|> Endpoint.request("/templates/#{template.template_id}/preview#{qs}", body)
43+
|> Endpoint.request("templates/#{template.template_id}/preview#{qs}", body)
4444
|> Endpoint.marshal_response(SparkPost.Content.Inline)
4545
|> SparkPost.Content.Inline.convert_from_field
4646
end

0 commit comments

Comments
 (0)