@websy/websy-designs 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -148,18 +148,18 @@ module.exports = function (options) {
148
148
  let excludedRoutes = process.env.EXCLUDED_ROUTES.split(',')
149
149
  // console.log('secure routes', secureRoutes)
150
150
  // console.log('excluded routes', excludedRoutes)
151
- console.log('path', req.path)
151
+ // console.log('path', req.path)
152
152
  // console.log('index of', excludedRoutes.indexOf(req.path))
153
153
  if (secureRoutes === false && excludedRoutes.indexOf(req.path) !== -1) {
154
- console.log('in condition A')
154
+ // console.log('in condition A')
155
155
  app.authHelper.isLoggedIn(req, res, next)
156
156
  }
157
157
  else if (secureRoutes === true && excludedRoutes.indexOf(req.path) === -1) {
158
- console.log('in condition B')
158
+ // console.log('in condition B')
159
159
  app.authHelper.isLoggedIn(req, res, next)
160
160
  }
161
161
  else {
162
- console.log('in condition C')
162
+ // console.log('in condition C')
163
163
  next()
164
164
  }
165
165
  // secureRoutes === false && excludedRoutes.indexOf(req.path) !== -1 && app.authHelper.isLoggedIn(req, res, next)