add dev email preview route

This commit is contained in:
2022-02-17 21:47:37 -05:00
parent 776d8a0250
commit 8cb8294ffd
3 changed files with 28 additions and 0 deletions

View File

@ -114,5 +114,9 @@ defmodule CanneryWeb.Router do
forward "/mailbox", Plug.Swoosh.MailboxPreview
end
scope "/dev" do
get "/preview/:id", CanneryWeb.EmailController, :preview
end
end
end