notherbase-fs 1.1.28 → 1.1.32

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.
@@ -53,7 +53,7 @@ let complete = function complete(explorerBuild) {
53
53
  if (detail.name !== "") detail.options.main = detail.name;
54
54
  detail.options.main = `${currentDir}/views/${detail.options.main}`;
55
55
 
56
- router.get(`${currentDir}/${detail.name}`, async function(req, res) {
56
+ router.get(`/${currentRegion}/${currentArea}/${currentPoi}/${detail.name}`, async function(req, res) {
57
57
  try {
58
58
  const foundInventory = await inventory.findOne({ user: req.session.currentUser }).populate("items.item");
59
59
 
@@ -100,21 +100,24 @@ let complete = function complete(explorerBuild) {
100
100
  }
101
101
  }
102
102
 
103
+ // start location
104
+ router.get("/", function(req, res) {
105
+ res.redirect("/the-front");
106
+ });
103
107
 
104
108
  //the void
105
109
  router.use(function(req, res, next){
106
110
  res.render(`explorer`,
107
111
  {
108
112
  siteTitle: "NotherBase | The Void",
113
+ user: null,
109
114
  styles: [`${dir}/${explorerBuild.void}/styles/void`],
115
+ externalStyles: [],
116
+ scripts: [],
117
+ inventory: null,
110
118
  main: `${dir}/${explorerBuild.void}/index`
111
119
  });
112
120
  });
113
-
114
- // start location
115
- router.get("/", function(req, res) {
116
- res.redirect("/the-front");
117
- });
118
121
  }
119
122
 
120
123
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "1.1.28",
3
+ "version": "1.1.32",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1 @@
1
+ void
File without changes