Skip to content

apps/api/src/features/approval/approval.router.ts ​

Auto-generated by scripts/generate-file-docs.ts. Do not edit — overwritten on every run.

Purpose ​

Approval router — implements api-contracts.md §6 (Approval Workflow). All paths are PLURAL /approvals (not /approval) per the contract. Reject endpoint verb is /deny (not /reject). Member-join submission (POST /api/v1/approvals) is PUBLIC (Clerk JWT in body) — a not-yet-provisioned visitor must be able to submit their application. /

Exports ​

  • export async function approvalRouter

Imports ​

  • ../../middleware/requireAuth
  • ../../middleware/requireRole
  • fastify

Imported by ​

Heritage Community Hub — Internal. Access restricted via Cloudflare Access + Entra ID.