mirror of
https://github.com/valitydev/api-key-mgmt.git
synced 2024-11-06 08:55:16 +00:00
TD-607: Fixes woody event handler (#20)
This commit is contained in:
parent
dc930c0419
commit
ba47be9e3a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user