I have a route defined as @com.xyx.abc(str: String) in my routes file.
I want to use this route in a template. I tried using
<a href="@com.xyx.abc("temp")/>
Obviously didn't work.
Thanks in advance.
I have a route defined as @com.xyx.abc(str: String) in my routes file.
I want to use this route in a template. I tried using
<a href="@com.xyx.abc("temp")/>
Obviously didn't work.
Thanks in advance.
Reverse routers are generated per package. So, if you have a package called com
, a controller called xyx
and a method called abc
, then you can do this:
@com.routes.xyx.abc("temp")
Or if it's a more realistic @com.example.MyController.abc(str: String)
, then it would be:
@com.example.routes.MyController.abc("temp")