Update lesson endpoint to include rating