From 7d93f0b277b055487d842083d5a6c84de2ad67f7 Mon Sep 17 00:00:00 2001 From: Inhji Date: Wed, 17 Apr 2019 20:36:43 +0200 Subject: [PATCH] add handle_syndicate_to_query, fix handle_undelete signature --- lib/plug_micropub/handler_behaviour.ex | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/plug_micropub/handler_behaviour.ex b/lib/plug_micropub/handler_behaviour.ex index f2059b6..e324d8d 100644 --- a/lib/plug_micropub/handler_behaviour.ex +++ b/lib/plug_micropub/handler_behaviour.ex @@ -30,8 +30,7 @@ defmodule PlugMicropub.HandlerBehaviour do @callback handle_undelete(url :: String.t(), access_token) :: :ok | {:ok, url :: String.t()} - | {:error, handler_error} - | {:error, handler_error, error_description :: String.t()} + | handler_error @callback handle_config_query(access_token) :: {:ok, map} @@ -41,6 +40,10 @@ defmodule PlugMicropub.HandlerBehaviour do {:ok, map} | handler_error + @callback handle_syndicate_to_query(access_token) :: + {:ok, map} + | handler_error + @callback handle_source_query( url :: String.t(), properties :: [String.t()],