$WAHALA backend reference implementation — see /api routes