tibia-api icon indicating copy to clipboard operation
tibia-api copied to clipboard

Add a route to read word page

Open raulfdm opened this issue 8 years ago • 2 comments

Must be created a route to receive a param with a world name and provide the following information:

image

The URL to consult is:

https://secure.tibia.com/community/?subtopic=worlds&world=<WORLD_NAME>

Important

  • First letter of world param must be capital letter. (amera !== Amera)

raulfdm avatar Nov 11 '17 12:11 raulfdm

I could help with this :)

(I did it two years later, xD)

renatorib avatar Nov 14 '17 20:11 renatorib

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'

renatorib avatar Nov 14 '17 21:11 renatorib