Files
edx-platform/lms/djangoapps/learner_recommendations/urls.py
Jody Bailey 76e4e8cfe8 feat: Added separate url for only returning amplitude recommendations (#32398)
* feat: Added separate url for only returning amplitude recommendations

* chore: added extra line between serializers

* chore: changed name of methods

* chore: updated and added docstrings
2023-06-08 16:29:52 +02:00

29 lines
1.0 KiB
Python

"""
Learner Recommendations URL routing configuration.
"""
from django.conf import settings
from django.urls import re_path
from lms.djangoapps.learner_recommendations import views
app_name = "learner_recommendations"
urlpatterns = [
re_path(fr'^amplitude/{settings.COURSE_ID_PATTERN}/$',
views.AboutPageRecommendationsView.as_view(),
name='amplitude_recommendations'),
re_path(fr'^cross_product/{settings.COURSE_ID_PATTERN}/$',
views.CrossProductRecommendationsView.as_view(),
name='cross_product_recommendations'),
re_path(r'^product_recommendations/$',
views.ProductRecommendationsView.as_view(),
name='product_recommendations_amplitude_only'),
re_path(fr'^product_recommendations/{settings.COURSE_ID_PATTERN}/$',
views.ProductRecommendationsView.as_view(),
name='product_recommendations'),
re_path(r"^courses/$",
views.DashboardRecommendationsApiView.as_view(),
name="courses"),
]