diff --git a/lib/ext.js b/lib/ext.js
index <HASH>..<HASH> 100644
--- a/lib/ext.js
+++ b/lib/ext.js
@@ -6,6 +6,11 @@ const Hoek = require('hoek');
 const Qs   = require('qs');
 
 const internals = {
+    containsPath: (array, path) => {
+        return _.any(array, (item) => {
+            return item instanceof RegExp ? item.test(path) : item === path;
+        });
+    },
     isValidRoute: function (request) {
 
         const include = this.config.routes.include;
@@ -14,8 +19,8 @@ const internals = {
         const method  = request.route.method;
 
         return (method === 'get' &&
-               (include[0] === '*' ||  containsPath(include, path)) &&
-               !containsPath(exclude, path));
+               (include[0] === '*' || this.containsPath(include, path)) &&
+               !this.containsPath(exclude, path));
     },
     getPagination: function (request, config) {
         let pagination = request.query[config.query.pagination.name];
@@ -40,14 +45,7 @@ const internals = {
     }
 };
 
-var containsPath = (array, path) => {
-    return _.any(array, (item) => {
-        if (item instanceof RegExp) {
-            return item.test(path);
-        }
-        return item === path;
-    });
-};
+
 
 
 module.exports = function (config) {
Move containsPath to internals