Direct imitation of Express API for page.js.