Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -25,8 +25,8 @@ class UserViewSet(viewsets.ModelViewSet): | ... | @@ -25,8 +25,8 @@ class UserViewSet(viewsets.ModelViewSet): |
25 | permission_classes = [permissions.IsAuthenticated] | 25 | permission_classes = [permissions.IsAuthenticated] |
26 | 26 | ||
27 | @csrf_exempt | 27 | @csrf_exempt |
28 | - @action(detail=False, methods=['POST'], permission_classes=[permissions.AllowAny], url_path='signUp', url_name='singUp') | 28 | + @action(detail=False, methods=['POST'], permission_classes=[permissions.AllowAny], url_path='signup', url_name='singup') |
29 | - def signUp(self, request): | 29 | + def signup(self, request): |
30 | serializer = SignUpSerializer(data=request.data) | 30 | serializer = SignUpSerializer(data=request.data) |
31 | if serializer.is_valid(): | 31 | if serializer.is_valid(): |
32 | user = serializer.create(data=request.data) | 32 | user = serializer.create(data=request.data) | ... | ... |
-
Please register or login to post a comment