support trailing slash in routes