-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.js
More file actions
24 lines (20 loc) · 800 Bytes
/
init.js
File metadata and controls
24 lines (20 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = (server) => {
let join = require('path').join;
let moddir = server.const.moddir;
let path = server.path;
let srcdir = join(moddir, "src");
let webdir = join(moddir, "web");
// create obfustacted code endpoints
path.code("data-index", join(srcdir, "index.js"));
path.code("data-index-db", join(srcdir, "index-db.js"));
path.code("data-worker", join(srcdir, "index-worker.js"));
path.code("data-moment", join(srcdir, "moment.js"));
path.code("data-qtree", join(srcdir, "qtree.js"));
// server "web" dir at the root of "/data"
path.static(moddir + "/web", "/data");
// add path remapping
// path.full({
// "/data/" : path.redir("/data"),
// "/data" : path.remap("/data.html")
// });
};