tibia-api
tibia-api copied to clipboard
Add a route to read word page
Must be created a route to receive a param with a world name and provide the following information:

The URL to consult is:
https://secure.tibia.com/community/?subtopic=worlds&world=<WORLD_NAME>
Important
- First letter of
worldparam must be capital letter. (amera !== Amera)
About the world name: I think it could be normalized, this way we can handle amera, AMERA, aMera, etc.
const normalize = (name) =>
name.charAt(0).toUpperCase() + name.slice(1).toLowerCase()
// normalize('aMera') -> 'Amera'