strip trailing slash on endpoints