Extract path from the URI

I would like to create a generic route for all the incoming request, extract the path and process it further.
How do we achieve this in Kong? How to extract the ‘path’ value into a variable and process it?


Take a glance at this plugin we wrote:

The specific param you are looking for to help evaluate path is: