server.js: pr endpoint working