Add req.query for index endpoints to allow finer search