mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
Command does not require addr
This commit is contained in:
@@ -24,13 +24,12 @@ def addresschecker(f):
|
||||
return addresslookup
|
||||
|
||||
|
||||
@method_decorator(addresschecker, name="put")
|
||||
class SendCommand(APIView):
|
||||
parser_classes = [PlainTextParser]
|
||||
|
||||
def put(self, request, address):
|
||||
def put(self, request):
|
||||
data = request.data
|
||||
conn.passthrough(address, data)
|
||||
conn.passthrough(data)
|
||||
return Response(data,
|
||||
status=status.HTTP_202_ACCEPTED)
|
||||
|
||||
|
Reference in New Issue
Block a user