refactor
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
from django.urls import re_path as url
|
||||
from django.urls import path
|
||||
|
||||
from ..views.oj import CommentAPI, CommentStatisticsAPI
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url(r"^comment/?$", CommentAPI.as_view(), name="comment_api"),
|
||||
url(r"^comment/statistics?$", CommentStatisticsAPI.as_view(), name="comment_statistics_api"),
|
||||
path("comment", CommentAPI.as_view()),
|
||||
path("comment/statistics", CommentStatisticsAPI.as_view()),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user