Hi,
if you want to add api route to the plugin you should put it under ‘api’ key in config.php.
Check these two files as an example:
Regards, M.