Self hosted FLOSS fitness/workout, nutrition and weight tracker
Make GET return an info message
Roland Geidercb20909c75d9
diff --git a/wger/core/api/views.py b/wger/core/api/views.pyindex 8ec2fafda..88b26a96b 100644--- a/wger/core/api/views.py+++ b/wger/core/api/views.py@@ -99,6 +99,9 @@ class UserAPILoginView(viewsets.ViewSet):serializer_class = UserApiSerializerthrottle_scope = 'login'+ def get(self, request):+ return Response({'message': "You must send a 'username' and 'password' via POST"})+def post(self, request):data = request.dataserializer = self.serializer_class(data=data)