Skip to content

Sent messages viewer error #33

Description

@mayulu

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions