mirror of
https://github.com/barkeser2002/offline-db.git
synced 2026-09-25 15:46:04 +03:00
- Implemented `Review` model in `content/models.py`. - Added API endpoints for reviews in `content/api/`. - Implemented "Critic" badge logic in `users/services.py` (awarded on first review). - Seeded "Critic" badge via migration. - Added comprehensive tests for reviews and badge awarding. - Fixed startup crash by adding `content/api/__init__.py`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
11 lines
244 B
Python
11 lines
244 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from .views import ReviewViewSet
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'reviews', ReviewViewSet)
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
]
|