MPP.Demo.Router (mpp v0.6.1)

Copy Markdown View Source

Demo router for mix mpp.demo — serves a protected endpoint behind MPP.

Routes:

  • GET / — welcome page with JSON instructions
  • GET /resource — protected endpoint (402 without payment, 200 with valid credential)
  • GET /health — unprotected healthcheck

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.