remove optional trailing slashes from routes