Add fs to example
Add endpoint to name dict to routes
Tidy up url reversing for endpoints