Separate API Endpoint

Hi guys,

Is there a method that we can change the API path?

The reasoning behind this is reverse proxies utilising 2fa, docker macvlans (host can't communicate directly with container) etc.

So, instead of having the API in /admin/api.php?...... we could have API on it's own endpoint of /api (or the ability to change the endpoint).

Alternatively, have PiHole expect an x-api header we can manipulate for better/more fine grained security.

Heck, if there was a way to also have the dashboard available under root instead of /admin/ that would also be fantastic as we could secure the login, but leave the public dashboard public without exposing the system too much.

If this is already available, let me know!

Thanks!