forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #530 from edly-io/alisalman/add-user-leaderboard-s…
…core update: add user-score on the leaderbaord
- Loading branch information
Showing
4 changed files
with
39 additions
and
10 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,17 +1,19 @@ | ||
""" | ||
URLs for badges API | ||
""" | ||
|
||
|
||
from django.conf import settings | ||
from django.urls import re_path | ||
from django.urls import re_path, path, include | ||
|
||
from .views import UserBadgeAssertions, LeaderboardView, VerfyTokenView | ||
|
||
from rest_framework.routers import DefaultRouter | ||
|
||
router = DefaultRouter() | ||
router.register(r'leaderboard', LeaderboardView, basename='leaderboard') | ||
|
||
urlpatterns = [ | ||
path('', include(router.urls)), | ||
re_path('^assertions/user/' + settings.USERNAME_PATTERN + '/$', | ||
UserBadgeAssertions.as_view(), name='user_assertions'), | ||
|
||
re_path('leaderboard/', LeaderboardView.as_view(), name='leaderboard'), | ||
re_path('verify-lms-token/', VerfyTokenView.as_view(), name='verify-lms-token'), | ||
] |
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
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