href

inline fun <T : Any> Application.href(resource: T): String(source)
inline fun <T : Any> Application.href(resource: T, urlBuilder: URLBuilder)(source)

Constructs a URL for resource.

The class of the resource instance must be annotated with Resource.

Report a problem