make trailing slash optional for main api calls #662

As suggested, I added the regex for all the main endpoints. Not sure if you need addtional rules for the deeper routes (eg: `%r{/clients?/([\w\.-]+)$}`.