> I will think if there's a better way.
Currently, the better way is:
if (currentAction.route == MyController.index.route)
I will improve Xitrum so that in the next version, you can simply
write:
if (currentAction == MyController.index)
Thanks for asking.