Here you go https://github.com/btcjt/westernbtc-website.
These will probably be the files of interest: src/app/api/v1/payreq/[username]/route.ts, src/app/api/v1/admin/mint-tokens/route.ts
Note: I don't have the queue listener code here. It's kept separate. I can push that code too if wanted.