Current section
Files
Jump to
Current section
Files
metadata_plugs
README.md
README.md
[](https://coveralls.io/github/heyorbit/metadata_plugs?branch=master)
[](https://hex.pm/packages/metadata_plugs)
[](https://hexdocs.pm/metadata_plugs)
[](https://travis-ci.org/heyorbit/metadata_plugs)
[](https://beta.hexfaktor.org/github/heyorbit/metadata_plugs)
# MetadataPlugs
Collection of plugs to provide different metadata information.
Plugs included:
* Health
* App version
## Installation
Add to dependencies
```elixir
def deps do
[{:metadata_plugs, "~> 0.1.0"}]
end
```
Install dependencies
```bash
mix deps.get
```
## Usage
Add the desired plugs to the endpoint file
```elixir
plug(MetadataPlugs.Health)
plug(MetadataPlugs.Info)
```
You can configure the path for the endpoints, for example
```elixir
plug(MetadataPlugs.Health, health_path: "/healthz")
```
Check [documentation](https://hexdocs.pm/metadata_plugs) for more options