HasanMerkit this is very tricky.
You can edit the name of the api
endpoint in config.php
and I think Flarum and most extensions should automatically use the new name.
However removing any specific route from the API will probably break the forum, since generally all routes added by extensions are used by the frontend.
Is there any reason you can't call your own endpoints with a different name or on a different subdomain?