"And after that, register this controller to be executed whenever a url with a trailing slash is requested:"