clarkwinkelmann First I have to ask... why do you need to use a separate domain ? This is not how Flarum is intended to work, and might complicate debugging and updating Flarum for you.
I would like to do so for aesthetic reasons and I will need this solution in the future. And I am aware of the problems that I may encounter through this.
⠀
clarkwinkelmann I don't think the paths setting in config.php allows you to completely remove a path, only rename it.
Here another question arises, as if I could delete an api on https://mykill.pl/https%3A%2F%2Fapi.mykill.pl?
⠀
clarkwinkelmann You could make changes to the group of api routes inside Flarum, but you can't move it to the root as the forum route group already handles that. Unless you use two different skeletons with different extend.php or composer dependencies.
I may have misspelled the question. I would like to write a separate skeleton for the subdomain api.mykill.pl to support only those queries that are currently doing this /api.
⠀
clarkwinkelmann The easiest solution would probably be to configure an Apache/Nginx proxy rule, where you take all requests to your api subdomain, and proxy them to your main forum while prepending /api/ to the path.
I thought about it, I even did it, but after a short time I decided that it wasn't what I meant.
The api variable in config.php is responsible for the path of the api, on which the queries are made when e.g. creating a discussion. It is also needed to determine the api path of the forum (/api, where the queries take place). If I redirected my subdomain to /api, it would work almost as expected, but forum queries would still be executed to https://mykill.pl/api, because it depends on the variable in the config.php file.
⠀
After changing this variable, the query address changes and that's what I mean most of the time, but I don't know what to do to have an api supported on the subdomain api.mykill.pl without redirecting to /api.
In other words, I don't know how to make an api skeleton on a subdomain and remove the current api (https://mykill.pl/https%3A%2F%2Fapi.mykill.pl).