-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
In my my_app/lib/my_app_web/router.ex:
defmodule MyApp.Router do
use MyApp.Web, :router
if Mix.env == :dev do
forward("/sent_messages", Apus.SentMessagesViewerPlug)
end
end
After iex -S mix, it tells:
** (UndefinedFunctionError) function Apus.SentMessagesViewerPlug.init/1 is undefined (module Apus.SentMessagesViewerPlug is not available)
Apus.SentMessagesViewerPlug.init([])
And I checked the file, no init() and call() functions, which should be required by Plug module.
Metadata
Metadata
Assignees
Labels
No labels