Add a way to only run path actions based on the method