Feature: Add Pagination to the "List All Notes" API
Implement a route that paginates the "list all notes" API. For example, if there are 100 notes in the database, each request should return 10 notes. The response should include the current page number and the total number of pages.
Page 1: Returns the first 10 notes.
Total Pages: 100 /10 = 10
The next request for page 2 will return the second set of 10 notes, and so on.
Write code with comments so that other can understand it.
Feature: Add Pagination to the "List All Notes" API
Implement a route that paginates the "list all notes" API. For example, if there are 100 notes in the database, each request should return 10 notes. The response should include the current page number and the total number of pages.
The next request for page 2 will return the second set of 10 notes, and so on.
Write code with comments so that other can understand it.