(self, request, slug, project_id, page_id)
| 474 | |
| 475 | @allow_permission([ROLE.ADMIN, ROLE.MEMBER]) |
| 476 | def create(self, request, slug, project_id, page_id): |
| 477 | _ = UserFavorite.objects.create( |
| 478 | project_id=project_id, |
| 479 | entity_identifier=page_id, |
| 480 | entity_type="page", |
| 481 | user=request.user, |
| 482 | ) |
| 483 | return Response(status=status.HTTP_204_NO_CONTENT) |
| 484 | |
| 485 | @allow_permission([ROLE.ADMIN, ROLE.MEMBER]) |
| 486 | def destroy(self, request, slug, project_id, page_id): |