Skip to content

Commit

Permalink
Merge pull request #10 from HiOperator/oauth_fixes
Browse files Browse the repository at this point in the history
Endpoint supports urls and paths now
  • Loading branch information
nsomar committed Dec 12, 2016
2 parents ce436e6 + 74ad38c commit 685dee2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/models/account.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ defmodule Zendesk.Account do
`endpoint`: the resource endpoint
"""
def full_url(account, <<"https://">> <> rest = endpoint), do: URI.merge(domain(account), endpoint) |> to_string()
def full_url(account, endpoint), do: domain(account) <> endpoint

@doc """
Expand Down

0 comments on commit 685dee2

Please sign in to comment.