View Source ExHealth.Plug (ex_health v0.4.0)

A plug for integerating into a web application.

examples

Examples

In Phoenix router.ex:

scope "/" do
  forward("/_health", ExHealth.Plug)
end

Please ensure to use scope/2, otherwise the alias will not let you access the ExHealth namespace.

For a more complete example, see the Example Phoenix App.

Link to this section Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Link to this section Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.