Anvil.API.Server (Anvil v0.1.1)

View Source

Boots the Anvil /v1 Plug router via Plug.Cowboy.

Controlled by :anvil, :api_server config:

config :anvil, :api_server, enabled: true, port: 4101

In test, this is disabled to avoid port binding.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)