I have two endpoints:
/api/v1/users
/api/v1/<resource>/users
I have a class that handles for the latter like this
class ListUsers(Resource):
def post(self,resource):
// get the list of users under that resource
api.addResource(ListUsers,'/api/v1/<resource>/users')
If the resource
is not specified, I want to list users from all resources. Is it possible to map both the urls to the same class ListUsers
instead of writing another class for the first url?