Skip to content

Commit

Permalink
fix : url경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo0419 committed Aug 17, 2023
1 parent b4a7b22 commit f07fdeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion community/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class CommentViewSet(mixins.DestroyModelMixin, viewsets.GenericViewSet):
def get_permissions(self):
if self.action == "destroy":
return [IsOwnerOrReadOnly()]
elif self.action == "reports":
elif self.action == "report":
return [IsAuthenticated()]
return []

Expand Down
4 changes: 2 additions & 2 deletions gym/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_serializer_class(self):
@action(
["POST"],
detail=True,
url_path="reports",
url_path="report",
permission_classes=[IsAuthenticated],
) # 신고
def report(self, request, pk):
Expand Down Expand Up @@ -86,7 +86,7 @@ def get_permissions(self):
@action(
["POST"],
detail=True,
url_path="reports",
url_path="report",
permission_classes=[IsAuthenticated],
) # 신고
def report(self, request, pk):
Expand Down

0 comments on commit f07fdeb

Please sign in to comment.