very basic security layer for express/connect
expresswall takes care of redirecting users to the login or denying access to secured ressources. You just defined whats secure or public by URL patterns.
expresswall can be installed via npm.
npm install expresswall
var expresswall = require'expresswall'…var wall = expresswallareas:static: pattern: /^\//login: pattern: /^\/login/secure:pattern: /^\//secured: trueredirect_to_login: true…appuseexpresssession …appusewallmiddlewareappuseapprouter