To get the URL of a controller method, use endpoint method, followed by the url method
import com.greenfossil.thorium.{*, given} val url: String = SimpleController.sayHello("John Doe").endpoint.url