API 调整

This commit is contained in:
yuetsh
2024-07-01 01:23:32 +08:00
committed by yuetsh
parent 5bcccf12e4
commit 145797076d
2 changed files with 15 additions and 9 deletions

View File

@@ -1,8 +1,9 @@
from django.urls import re_path as url
from ..views.oj import CommentAPI
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"),
]