I want: to refactor the handler function to be more efficient by using an object to map endpoints, as well as destructure method parameters so users don't run into issues with omitting optional parameters. I also want to update the README to reflect the new usage.
Because: it cuts down on repeated code and reduces errors
Acceptance criteria: use an object to map endpoints in the handler function. Remove switch statement. Destructure object parameters. Update README appropriately.
As an: Engineer
I want: to refactor the handler function to be more efficient by using an object to map endpoints, as well as destructure method parameters so users don't run into issues with omitting optional parameters. I also want to update the README to reflect the new usage.
Because: it cuts down on repeated code and reduces errors
Acceptance criteria: use an object to map endpoints in the handler function. Remove switch statement. Destructure object parameters. Update README appropriately.