diff --git a/osinaweb/osinacore/api/urls.py b/osinaweb/osinacore/api/urls.py index 26d59022..9ee8feac 100644 --- a/osinaweb/osinacore/api/urls.py +++ b/osinaweb/osinacore/api/urls.py @@ -4,4 +4,5 @@ from . import views urlpatterns = [ path('register/', views.register_customer, name='register_customer'), + path('authenticate/', views.authenticate_customer, name='authenticate_customer'), ] \ No newline at end of file diff --git a/osinaweb/osinacore/api/views.py b/osinaweb/osinacore/api/views.py index ea646250..5b3b68bf 100644 --- a/osinaweb/osinacore/api/views.py +++ b/osinaweb/osinacore/api/views.py @@ -27,7 +27,7 @@ def register_customer(request): return Response({'message': 'User and Customer data are required'}, status=status.HTTP_400_BAD_REQUEST) -def authenticate_user(request): +def authenticate_customer(request): if request.method == 'POST': email = request.POST.get('email') password = request.POST.get('password')