Download apps/gamification/urls.py from ecocyclehub-capstone-dicoding/ecocyclehub-api: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/ecocyclehub-capstone-dicoding/ecocyclehub-api/resolve/main/apps/gamification/urls.py
- Command line
-
hf download hf://spaces/ecocyclehub-capstone-dicoding/ecocyclehub-api/apps/gamification/urls.py
-
curl -L -o urls.py https://huggingface.co/spaces/ecocyclehub-capstone-dicoding/ecocyclehub-api/resolve/main/apps/gamification/urls.py
361 Bytes
| from django.urls import path | |
| from .views import ( | |
| LeaderboardView, | |
| LevelListCreateView, | |
| LevelDetailView | |
| ) | |
| urlpatterns = [ | |
| path("leaderboard/", LeaderboardView.as_view(), name='leaderboard'), | |
| path("levels/", LevelListCreateView.as_view(), name='level-list'), | |
| path("levels/<uuid:pk>/", LevelDetailView.as_view(), name='level-detail'), | |
| ] | |