How can I add routes per query string?

Hi, I’ve seen “request path” section in https://docs.konghq.com/1.4.x/proxy/. But it’s not clear how to add a route per querystring.

For example, how can I add two routes for g1 and g2 respectively?
1.

GET /service/resource?group=g1
GET /service/resource?group=g2

The reason for this is to assign different acls rules for g1 and g2.

Thanks!