Set StrictSlash on API router to automatically redirect to correct url if slash is not provided