Struggling to understand models - question about Adolfo's ember 101 book

I’m quite early on in around pages 29.

How does the index.js Route in the subdirectory friends access friend.js in the models folder?

And how does it then get the data from http://api.ember-101.com/friends since the model uses firstName but in the api it is first-name.

Just having trouble seeing how they all link up.