Skip to content

Commit

Permalink
Support PATCH as an HTTP method on Snap.Cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtaylor committed Nov 11, 2023
1 parent c867689 commit d6893d6
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 d6893d6

Please sign in to comment.