cambsull / SteamWebAPILibrary

A JavaScript Library to make calls to the Steam Web API easier
https://cambsull.github.io/SteamWebAPILibrary/
MIT License
4 stars 2 forks source link

Refactor handler function #40

Closed cambsull closed 3 months ago

cambsull commented 3 months ago

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.