diff --git a/index.js b/index.js index 1a646a3..bb762d9 100644 --- a/index.js +++ b/index.js @@ -17,18 +17,10 @@ app.set('views', path.join(__dirname, 'views')); hbs.registerPartials(__dirname + '/views/partials'); app.set('view engine', 'hbs'); -// uncomment after placing your favicon in /public -app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); - -app.use(logger('dev')); -app.use(bodyParser.json()); -app.use(bodyParser.urlencoded({ extended: false })); -app.use(cookieParser()); -app.use(session({ - secret: 'secret', - resave: false, - saveUninitialized: true })) + + + app.use(express.static(path.join(__dirname, 'public'))); // res.locals is an object passed to hbs engine diff --git a/package.json b/package.json index 03cbeb6..aa42b1f 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,6 @@ "author": "George Tsopouridis", "email": "gtsopour@gmail.com", "private": false, - - - "scripts": { "start": "node ./bin/www", "start_azure_debug": "if [[ ${APPSVC_TUNNEL_PORT} != \"\" ]]; then node --inspect=0.0.0.0:$APPSVC_TUNNEL_PORT ./bin/www; else npm run start; fi"