-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add course list and specific views
- Loading branch information
1 parent
a16a966
commit d4eeb91
Showing
3 changed files
with
283 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
""" | ||
Course API URLs | ||
""" | ||
from django.urls import path | ||
from django.conf import settings | ||
from django.urls import path, re_path | ||
|
||
from eox_nelp.stats.api.v1.views import GeneralTenantStatsView | ||
from eox_nelp.stats.api.v1.views import GeneralCourseStatsView, GeneralTenantStatsView | ||
|
||
app_name = "eox_nelp" # pylint: disable=invalid-name | ||
|
||
urlpatterns = [ | ||
path('tenant-stats/', GeneralTenantStatsView.as_view(), name="general-stats"), | ||
path('tenant/', GeneralTenantStatsView.as_view(), name="general-stats"), | ||
path('courses/', GeneralCourseStatsView.as_view(), name="courses-stats"), | ||
re_path(rf'^courses/{settings.COURSE_ID_PATTERN}', GeneralCourseStatsView.as_view(), name="course-stats"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters