RateMyCourse/backend/postings/api/urls.py

16 lines
425 B
Python
Raw Normal View History

from .views import *
from django.urls import path, re_path
2018-09-16 16:52:23 +00:00
urlpatterns = [
# /api/postings/reviews/ Lists all review objects.
path('reviews/', ReviewsView.as_view(), name='reviews'),
# /api/postings/reviews/1/ Returns data for one Review.
path('reviews/<int:pk>', ReviewView.as_view(), name='review'),
2018-09-16 16:52:23 +00:00
path('reviews/<int:review_id>/helpful_vote/', review_helpful_vote, name='review_helpful_vote'),
# Deprecated
2018-09-16 16:52:23 +00:00
]