Maybe something like this will help: ``` val UPDAT...
# announcements
m
Maybe something like this will help:
Copy code
val UPDATE_BOOK_ROUTE = “/updateBook”.asRoute<Book>(<http://HttpMethod.POST|HttpMethod.POST>)
Copy code
fun <T> formFor(T obj, Route<T>): Html = TODO()
Copy code
fun <T> String.asRoute(method: HttpMethod): Route<T> = Route(this, method)
Route constructor may check if this address not already taken and is there an appropriate controller.