PingPlug

Build Status

A simple Elixir plug to echo message

Installation

If available in Hex, the package can be installed as:

Add ping_plug to your list of dependencies in mix.exs:

def deps do
  [{:ping_plug, "~> 0.1.0"}]
end

Usage

Mount PingPlug module to your desire route.

e.g. route.ex

get "/ping", PingPlug, []

only 2 options are available right now,

e.g.

get "/ping", PingPlug, [message: Mix.env]