Skip to content

Instantly share code, notes, and snippets.

View johnmave126's full-sized avatar

Shuhao Tan johnmave126

View GitHub Profile
var restify = require('restify');
// Authentication
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var sessions = require("client-sessions");
var server = restify.createServer();
server.use(restify.queryParser());
server.use(restify.bodyParser({mapParams: false}));