Merge pull request #2 from inhji/handle_syndicate_to_query

add handle_syndicate_to_query, fix handle_undelete signature
This commit is contained in:
Ryan Johnson 2019-04-19 08:09:48 -07:00 committed by GitHub
commit c6976ac951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,8 +30,7 @@ defmodule PlugMicropub.HandlerBehaviour do
@callback handle_undelete(url :: String.t(), access_token) :: @callback handle_undelete(url :: String.t(), access_token) ::
:ok :ok
| {:ok, url :: String.t()} | {:ok, url :: String.t()}
| {:error, handler_error} | handler_error
| {:error, handler_error, error_description :: String.t()}
@callback handle_config_query(access_token) :: @callback handle_config_query(access_token) ::
{:ok, map} {:ok, map}
@ -41,6 +40,10 @@ defmodule PlugMicropub.HandlerBehaviour do
{:ok, map} {:ok, map}
| handler_error | handler_error
@callback handle_syndicate_to_query(access_token) ::
{:ok, map}
| handler_error
@callback handle_source_query( @callback handle_source_query(
url :: String.t(), url :: String.t(),
properties :: [String.t()], properties :: [String.t()],