1👍
✅
The ViewSet
is the controller of the resource. It doesn’t make sense to set a method on a ViewSet
and associate it with another resource.
Either write a function with decorator to make an API entry point or get a new ViewSet
for it.
Source:stackexchange.com