add optional configuration path to use request path info instead of controller action
add support for grape api