Added optional function to run on a specific route

Add it when you add a route in params {func:functionName}