Automatically 401 redirect routes with a trailing slash to a route without a trailing slash