diff --git a/lms/envs/common.py b/lms/envs/common.py index 888abbacea49..67ff1d40569c 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -985,6 +985,18 @@ # .. toggle_warnings: For consistency in user-experience, keep the value in sync with the setting of the same name # in the LMS and CMS. 'MARK_LIBRARY_CONTENT_BLOCK_COMPLETE_ON_VIEW': False, + + # .. toggle_name: FEATURES['ENABLE_MFE_CONFIG_API'] + # .. toggle_implementation: DjangoSetting + # .. toggle_default: False + # .. toggle_description: Set to True to enable MFE Config REST API. This is disabled by + # default. + # .. toggle_use_cases: open_edx + # .. toggle_creation_date: 2022-05-20 + # .. toggle_target_removal_date: None + # .. toggle_warnings: None + # .. toggle_tickets: None + 'ENABLE_MFE_CONFIG_API' : False, } # Specifies extra XBlock fields that should available when requested via the Course Blocks API diff --git a/lms/urls.py b/lms/urls.py index 9fa61c0e8e3f..1abb83e35c9c 100644 --- a/lms/urls.py +++ b/lms/urls.py @@ -1041,6 +1041,7 @@ path('api/ora_staff_grader/', include('lms.djangoapps.ora_staff_grader.urls', 'ora-staff-grader')), ] -urlpatterns +=[ - path('api/mfe/', include('openedx.core.djangoapps.mfe_api.urls')) -] +if settings.FEATURES.get('ENABLE_MFE_CONFIG_API'): + urlpatterns +=[ + path('api/mfe/', include('openedx.core.djangoapps.mfe_api.urls')) + ]