Commit b9ea687d authored by Sli's avatar Sli
Browse files

Fixed comment

parent c2ccf630
......@@ -30,13 +30,13 @@ class CounterViewSet(viewsets.ModelViewSet):
def bar(self, request):
Return all counters (api/v1/counter/all)
Return all counters (api/v1/counter/bar)
self.queryset = Counter.objects.filter(type="BAR")
serializer = self.get_serializer(self.queryset, many=True)
return Response(
def id(self, request, pk=None):
Get by id (api/v1/{nk}/id)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment