Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/routes/invoice"

Index

Variables

Functions

Variables

Const router

router: Router = Router()

Functions

getInvoiceStatus

  • Route: GET /invoice

    Checks the status of an invoice based on a specific id in the query parameter. If the invoice is paid then a discharge macaroon will be attached to the session. The discharge macaroon can have a custom caveat set on it based on configs passed into Boltwall on initialization of the middleware.

    Parameters

    Returns Promise<Response>

postNewInvoice

  • Route: POST /invoice

    Generate a new invoice based on a given request. This will also create a new root macaroon to associate with the session. The root macaroon and associated 3rd party caveat must be satisfied before access to the protected route will be granted

    Parameters

    Returns Promise<void>

Generated using TypeDoc