diff --git a/halfapi/halfapi.py b/halfapi/halfapi.py index e7409d6..6c3aa6b 100644 --- a/halfapi/halfapi.py +++ b/halfapi/halfapi.py @@ -49,10 +49,10 @@ class HalfAPI: def __init__(self, config, routes_dict=None): config_logging(logging.DEBUG) - SECRET = config.get('SECRET') - PRODUCTION = config.get('PRODUCTION', True) - DOMAINS = config.get('DOMAINS', {}) - CONFIG = config.get('CONFIG', { + SECRET = config.get('secret') + PRODUCTION = config.get('production', True) + DOMAINS = config.get('domains', {}) + CONFIG = config.get('config', { 'domains': DOMAINS })