Execute an arbitrary function by accessing a matching url