Documentation
¶
Overview ¶
Package apprhttp serves the Approvals queue on the portal (#2437, #2494): a person's own requests, every request for an administrator, filing one and deciding one, through the service manage_approval uses and under its rules. Every write is audited as a manage_approval call from the portal.
Index ¶
Constants ¶
View Source
const Prefix = "/api/v1/portal/approvals"
Prefix opens every route.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Service *approval.Service
// Actor is who made a request, nil for none.
Actor func(r *http.Request) *approval.Actor
Audit middleware.AuditLogger
}
Config is what the routes use.
Click to show internal directories.
Click to hide internal directories.