Skip to content

Commit

Permalink
Merge pull request #73 from breakroom/support-patch-request
Browse files Browse the repository at this point in the history
Support PATCH as an HTTP method on `Snap.Cluster`
  • Loading branch information
tomtaylor authored Nov 11, 2023
2 parents f26e5e9 + d6893d6 commit 9e278b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/snap/cluster.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ defmodule Snap.Cluster do
Request.request(__MODULE__, :delete, path, nil, params, headers, opts)
end

def patch(path, body \\ nil, params \\ [], headers \\ [], opts \\ []) do
Request.request(__MODULE__, :patch, path, body, params, headers, opts)
end

def child_spec(opts) do
%{
id: __MODULE__,
Expand Down

0 comments on commit 9e278b6

Please sign in to comment.