[cogenda-web] [skip ci] - Refactor resouce code.