Share some tea with friends when they ask for the most ridiculous of paths.
If available in Hex, the package can be installed
by adding plug_teapot
to your list of dependencies in mix.exs
:
def deps do
[
{:plug_teapot, "~> 0.1.1"}
]
end
Add it to your Plug
pipeline:
defmodule MyApp do
use Plug.Builder
use PlugTeapot
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/teapot.