Router already provides this functionality: `req.query`.