notherbase-fs 3.2.17 → 3.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ export default class Creation {
10
10
  this.router = express.Router();
11
11
 
12
12
  //home
13
- this.router.get("/", function(req, res) { res.redirect("/the-front"); });
13
+ this.router.get("/", this.front, this.explore);
14
14
 
15
15
  //the-front
16
16
  this.router.get(`/the-front`, this.front, this.explore);
@@ -24,8 +24,7 @@ export default class Creation {
24
24
  this.router.get(`/:region/:area/:poi/:detail`, this.lock, this.detail, this.explore);
25
25
 
26
26
  //void
27
- this.router.use(function(req, res) {
28
- console.log(req.path);
27
+ this.router.use(function(req, res) {
29
28
  res.redirect("/void");
30
29
  });
31
30
  }
package/notherbase-fs.js CHANGED
@@ -48,6 +48,7 @@ class NotherBaseFS {
48
48
  this.app.use(express.static(`${__dirname}/public`));
49
49
 
50
50
  // sets the favicon image
51
+ this.app.use(favicon(contentPath + '/public/img/logo.ico'));
51
52
  this.app.use(favicon(__dirname + '/public/img/logo.png'));
52
53
 
53
54
  //enable cookies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "3.2.17",
3
+ "version": "3.2.19",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {