summaryrefslogtreecommitdiff
path: root/lib/lsg_web/endpoint.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-06 15:05:07 +0200
committerhref <href@random.sh>2021-09-06 15:05:07 +0200
commit1c7828f9557eef518030df79254a5df642a406d7 (patch)
treeee93b99b230af47905992f017014de5d17e9e538 /lib/lsg_web/endpoint.ex
parentAdd sentry (diff)
Sentry
Diffstat (limited to '')
-rw-r--r--lib/lsg_web/endpoint.ex4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lsg_web/endpoint.ex b/lib/lsg_web/endpoint.ex
index 4dd8151..bfd53c8 100644
--- a/lib/lsg_web/endpoint.ex
+++ b/lib/lsg_web/endpoint.ex
@@ -1,4 +1,5 @@
defmodule LSGWeb.Endpoint do
+ use Sentry.PlugCapture
use Phoenix.Endpoint, otp_app: :lsg
# Serve at "/" the static files from "priv/static" directory.
@@ -23,8 +24,9 @@ defmodule LSGWeb.Endpoint do
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
- json_decoder: Poison
+ json_decoder: Jason
+ plug Sentry.PlugContext
plug Plug.MethodOverride
plug Plug.Head