Clean up route in repo.clj

I've tried to clean up one of the routes in repo.clj, it's not perfect but I think it's a little more readable.

This is my first time contributing so I'm more than happy to take any feedback on board (including if this is pull request is unwanted).