Added Login and Signup Endpoints within Django

This commit is contained in:
2024-03-25 14:33:16 -04:00
parent 57e2da94ff
commit a92522f030
20 changed files with 539 additions and 0 deletions

6
backend/api/views.py Normal file
View File

@@ -0,0 +1,6 @@
from rest_framework.views import APIView
from rest_framework.response import Response
from api.serializers import LoginSerializer
from django.contrib.auth import authenticate
from rest_framework.authtoken.models import Token
from rest_framework import status