Thorium Server

Reverse routing

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
Last modified on 19/12/2022, 9:06 am