Passing callable object rather then string in url