diff --git a/example/index.js b/example/index.js
index <HASH>..<HASH> 100644
--- a/example/index.js
+++ b/example/index.js
@@ -10,6 +10,12 @@ app.set('view engine', 'html');
 app.set('views', require('path').join(__dirname, '/view'));
 app.engine('html', hogan);
 
+// A normal un-protected public URL.
+
+app.get('/', function (req, res) {
+  res.render('index');
+});
+
 // Create a session-store to be used by both the express-session
 // middleware and the keycloak middleware.
 
@@ -46,12 +52,6 @@ app.use(keycloak.middleware({
   admin: '/'
 }));
 
-// A normal un-protected public URL.
-
-app.get('/', function (req, res) {
-  res.render('index');
-});
-
 app.get('/login', keycloak.protect(), function (req, res) {
   res.render('index', {
     result: JSON.stringify(JSON.parse(req.session['keycloak-token']), null, 4),
registering the unprotected endpoint before registering the KC middleware