Skip to content

Commit

Permalink
refactor: refactor an endpoint url
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Oct 29, 2024
1 parent ab709b1 commit a24d9f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/fsm/views/fsm_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def enter_fsm(self, request, pk=None):

@swagger_auto_schema(responses={200: PlayerSerializer}, tags=['player'])
@transaction.atomic
@action(detail=True, methods=['get'], url_path='user-player')
def get_user_player(self, request, pk=None):
@action(detail=True, methods=['get'], url_path='current-user-player')
def get_current_user_player(self, request, pk=None):
fsm = self.get_object()
user = request.user
player = get_players(user, fsm).last()
Expand Down

0 comments on commit a24d9f1

Please sign in to comment.