Skip to content

Commit

Permalink
fix(Endpoints): remove trailing shlash in users/0
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC committed Sep 11, 2018
1 parent 2c44b31 commit 2ffd550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rest/endpoints.ex
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ defmodule Crux.Rest.Endpoints do
"""
@spec users(suffix :: String.t()) :: String.t()
def users(suffix \\ nil)
def users(nil), do: "/users/"
def users(nil), do: "/users"
def users(suffix), do: "#{users()}/#{suffix}"

@doc """
Expand Down

0 comments on commit 2ffd550

Please sign in to comment.