Add defaults value to route function