Directus
Back to Listing

Abstracted Config Files (JSON)

@WellingGuzman

What do you think about abstracting the configuration files. Currently, they are in the API directory as PHP files – but couldn't we make them JSON files in the root so they are not tied to the server-side language? Does that seem like a good idea or overkill?

Also, would it make sense to have a decoupled directory structure like this:

/api-php/core/...
/config.json
/configuration.json

Instead of this (currently):

/api/core/...
/api/config.php
/api/configuration.php