Lets any signed-in user invite someone, from their profile page. The invite link opens the /register page.

  • POST /api/invites — signed in. Makes an invite and answers its token.
  • GET /api/invites/:token — public. Checks that an invite still works, before the register page shows its form; 404 when it doesn't.

Variables

v
default: Router

Mounted by api/main.ts behind the error, Open Graph and CORS middleware. An APIException thrown by a handler becomes the JSON error response there.