I get most things in XenForo but routes drive me mad.
I have added a custom action method to my extension of the XFRM resourceitem public controller.
Here is the format of the extension:
<?php
namespace My\Addon\XFRM\Pub\Controller;
use XF\Mvc\ParameterBag;
use...