mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
Fixed comment
This commit is contained in:
parent
c2ccf63021
commit
b9ea687df1
@ -30,13 +30,13 @@ class CounterViewSet(viewsets.ModelViewSet):
|
||||
@list_route()
|
||||
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(serializer.data)
|
||||
|
||||
@detail_route(methods=['GET'])
|
||||
@detail_route()
|
||||
def id(self, request, pk=None):
|
||||
"""
|
||||
Get by id (api/v1/{nk}/id)
|
||||
|
Loading…
Reference in New Issue
Block a user