Archived
- add uv configuration for the backend - update frontend to make auth work - add new auth endpoints - add bookmars feat - add reader feat
15 lines
467 B
Python
15 lines
467 B
Python
from rest_framework import generics
|
|
from rest_framework.permissions import AllowAny
|
|
from rest_framework_simplejwt.views import TokenObtainPairView
|
|
|
|
from apps.users.serializers import EmailTokenObtainPairSerializer, RegisterSerializer
|
|
|
|
|
|
class RegisterView(generics.CreateAPIView):
|
|
serializer_class = RegisterSerializer
|
|
permission_classes = [AllowAny]
|
|
|
|
|
|
class EmailTokenObtainPairView(TokenObtainPairView):
|
|
serializer_class = EmailTokenObtainPairSerializer
|