notherbase-fs 4.0.11 → 4.0.13
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.
- package/controllers/spirit-world.js +0 -4
- package/notherbase-fs.js +2 -1
- package/package.json +1 -1
|
@@ -3,9 +3,6 @@ import { stripHtml } from "string-strip-html";
|
|
|
3
3
|
import { success, fail } from "./util.js";
|
|
4
4
|
import User from "./user.js";
|
|
5
5
|
import fs from 'fs';
|
|
6
|
-
import session from 'express-session';
|
|
7
|
-
import MongoStore from 'connect-mongo';
|
|
8
|
-
import subdomain from 'express-subdomain';
|
|
9
6
|
|
|
10
7
|
/**
|
|
11
8
|
* The spirit world is the API of a base.
|
|
@@ -22,7 +19,6 @@ export default class SpiritWorld {
|
|
|
22
19
|
|
|
23
20
|
this.user = new User();
|
|
24
21
|
this.router = express.Router();
|
|
25
|
-
|
|
26
22
|
this.router.post("/loadAll", this.loadAll);
|
|
27
23
|
this.router.post("/load", this.load);
|
|
28
24
|
this.router.post("/serve", this.serve);
|
package/notherbase-fs.js
CHANGED
|
@@ -62,7 +62,7 @@ class NotherBaseFS {
|
|
|
62
62
|
}
|
|
63
63
|
else req.hosting = split[0];
|
|
64
64
|
console.log(req.hosting);
|
|
65
|
-
|
|
65
|
+
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
req.contentPath = this.bases[req.hosting].directory;
|
|
@@ -89,6 +89,7 @@ class NotherBaseFS {
|
|
|
89
89
|
|
|
90
90
|
//provide database access and etc to use in routes
|
|
91
91
|
this.app.use((req, res, next) => {
|
|
92
|
+
console.log(req.session);
|
|
92
93
|
req.globals = globals;
|
|
93
94
|
req.db = Models;
|
|
94
95
|
req.lock = false;
|