diff --git a/lib/deep_lex.ex b/lib/deep_lex.ex index 55d3ecd..d06d857 100644 --- a/lib/deep_lex.ex +++ b/lib/deep_lex.ex @@ -8,8 +8,8 @@ defmodule DeepLex do @type response :: %{translations: [translation]} - plug Tesla.Middleware.EncodeFormUrlencoded - plug Tesla.Middleware.DecodeJson, engine_opts: [keys: :atoms!] + plug(Tesla.Middleware.EncodeFormUrlencoded) + plug(Tesla.Middleware.DecodeJson, engine_opts: [keys: :atoms!]) defp base_url(:free) do "https://api-free.deepl.com/v2/"