Browse Source

finally added a damn favicon

tags/1.0.0
Ro 4 months ago
parent
commit
634011059d
3 changed files with 5 additions and 3 deletions
  1. +1
    -0
      .gitignore
  2. +4
    -3
      brain/app.js
  3. BIN
     

+ 1
- 0
.gitignore View File

@@ -5,6 +5,7 @@ node_modules/
/*
!public/
public/*
!public/favicon.ico
!public/assets
public/assets/*
!public/assets/images


+ 4
- 3
brain/app.js View File

@@ -8,7 +8,9 @@ var session = require('express-session');
var MemoryStore = require('memorystore')(session);
var flash = require('connect-flash');
var app = express();
//var request = require('request');
// favicon stuff
//app.use(favicon(path.join(__dirname, 'favicons', 'favicon.ico')));

// view engine setup
app.set('views', path.join(__dirname, './views'));
app.set('view engine', 'pug');
@@ -23,8 +25,7 @@ app.use(
);
app.use(cookieParser());
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(
session({
store: new MemoryStore({


BIN
View File


Loading…
Cancel
Save