Implement a loyalty program by creating persistence for customer points and developing an appropriate API endpoint for managing them.
creating persistance of customer points as well as an appropriate endpoint