CoherenceAssent v0.3.1 CoherenceAssent.Router View Source

Handles routing for CoherenceAssent.

Usage

Configure lib/my_project/web/router.ex the following way:

defmodule MyProject.Router do
  use MyProjectWeb, :router
  use CoherenceAssent.Router

  scope "/", MyProjectWeb do
    pipe_through :browser

    coherence_assent_routes
  end

  ...
end

Link to this section Summary

Functions

CoherenceAssent router macro. Use this macro to define the CoherenceAssent routes

Link to this section Functions

Link to this macro coherence_assent_routes(options \\ %{}) View Source (macro)

CoherenceAssent router macro. Use this macro to define the CoherenceAssent routes.

Examples:

scope "/" do
  coherence_assent_routes
end