add endpoint to get the config