Added configuration option to enable/disable the api routes. This feature is not yet implemented