simplify endpoint configuration to only one file (config.js)