|
|
@ -8,7 +8,9 @@ var session = require('express-session');
|
|
|
|
var MemoryStore = require('memorystore')(session);
|
|
|
|
var MemoryStore = require('memorystore')(session);
|
|
|
|
var flash = require('connect-flash');
|
|
|
|
var flash = require('connect-flash');
|
|
|
|
var app = express();
|
|
|
|
var app = express();
|
|
|
|
//var request = require('request');
|
|
|
|
// favicon stuff
|
|
|
|
|
|
|
|
//app.use(favicon(path.join(__dirname, 'favicons', 'favicon.ico')));
|
|
|
|
|
|
|
|
|
|
|
|
// view engine setup
|
|
|
|
// view engine setup
|
|
|
|
app.set('views', path.join(__dirname, './views'));
|
|
|
|
app.set('views', path.join(__dirname, './views'));
|
|
|
|
app.set('view engine', 'pug');
|
|
|
|
app.set('view engine', 'pug');
|
|
|
@ -23,8 +25,7 @@ app.use(
|
|
|
|
);
|
|
|
|
);
|
|
|
|
app.use(cookieParser());
|
|
|
|
app.use(cookieParser());
|
|
|
|
app.use(express.static(path.join(__dirname, '../public'), { extensions: ['html'] }));
|
|
|
|
app.use(express.static(path.join(__dirname, '../public'), { extensions: ['html'] }));
|
|
|
|
//app.use(express.static(path.join(__dirname, '../content')));
|
|
|
|
|
|
|
|
//app.use(express.static(path.join(__dirname, '../themes')));
|
|
|
|
|
|
|
|
app.use(
|
|
|
|
app.use(
|
|
|
|
session({
|
|
|
|
session({
|
|
|
|
store: new MemoryStore({
|
|
|
|
store: new MemoryStore({
|
|
|
|