TD-607: Fixes woody event handler (#20)

This commit is contained in:
Aleksey Kashapov 2023-06-05 13:07:16 +03:00 committed by GitHub
parent dc930c0419
commit ba47be9e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -5,16 +5,16 @@ defmodule ApiKeyMgmt.Router do
"""
use Plug.Router
plug Plug.Logger, log: :debug
plug Plug.Logger
plug :match
plug :dispatch
forward("/health", to: ApiKeyMgmt.Health.Router)
forward "/health", to: ApiKeyMgmt.Health.Router
forward("/apikeys/v1", to: Plugger.Generated.Router, assigns: %{handler: ApiKeyMgmt.Handler})
forward "/apikeys/v1", to: Plugger.Generated.Router, assigns: %{handler: ApiKeyMgmt.Handler}
if Mix.env() == :dev do
forward("/sent_emails", to: Bamboo.SentEmailViewerPlug)
forward "/sent_emails", to: Bamboo.SentEmailViewerPlug
end
match _ do

View File

@ -5,7 +5,7 @@ default_woody_client_options = [
# DISCUSS consider configuring scoper handler
# https://github.com/valitydev/scoper/blob/87110f5bd72c0e39ba9b7d6eca88fea91b8cd357/src/scoper_woody_event_handler.erl
# See hellgate' `sys.config`
event_handler: :woody_event_handler_default
event_handler: Woody.EventHandler.Default
]
# Configure release environment here