Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jun 21st, 2018 47 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. require.paths.unshift(__dirname + '/modules', __dirname + '/lib/node', __dirname);
  2.  
  3. var express = require('express');
  4.    
  5. var app = module.exports = new express.Server();
  6.    
  7. app.configure(function() {    
  8.     app.use(express.cookieDecoder());
  9.     app.use(express.session());
  10. });
  11.  
  12. app.get('/', function(req, res) {
  13.     res.send('Hello World');
  14. });
  15.  
  16. /**
  17.  * TEST config:
  18.  */
  19. app.configure('test', function() {
  20.     var MemoryStore = express.session.MemoryStore;
  21.     app.use(express.session({ store: new MemoryStore({ reapInterval: -1 }) }));
  22. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top