   app.use ensureSSL
 
   # General helpers and express middleware
+  app.use flash()
+  app.use flashMiddleware
   app.use localsMiddleware
   app.use micrositeMiddleware
   app.use helpersMiddleware

ensureSSL = require './middleware/ensure_ssl'
errorHandler = require "../components/error_handler"
{ notFoundError, loginError } = require('./middleware/errors')

# Setup sharify constants & require dependencies that use sharify data
sharify.data =

  app.use require "../apps/auth"
  app.use require "../apps/browse"
  app.use require "../apps/feature"
  app.use require "../apps/flash"
  app.use require "../apps/galleries"
  app.use require "../apps/tag"
  app.use require "../apps/gene"
