Pattern matching added to secure routes