Hello,
I have organized my API routes into multiple php files. In the beginning of each, I define the API paths as variables.
e.g.
$apiPublicBase = "/api/public/v1";
I am now looking to:
-
Define them in one place, once, for all route files.
-
Even better if I could access the same definitions in my javascript application. Is this possible?
Thanks