summaryrefslogtreecommitdiff
path: root/app/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-09-06 11:51:27 -0400
committerJules Laplace <jules@okfoc.us>2016-09-06 11:51:27 -0400
commit636866c735a1b480625ad38029e54ec932e28fb1 (patch)
tree47d46845224bcb78332bc9134c4f4f2fac9dd866 /app/index.js
parent09542dc95dd51699dd91bee8cd364a45d7e64eaf (diff)
use /admin/_lib for libraries for custom cms
Diffstat (limited to 'app/index.js')
-rw-r--r--app/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/index.js b/app/index.js
index c0d2ff3..57d571c 100644
--- a/app/index.js
+++ b/app/index.js
@@ -45,6 +45,10 @@ function OKCMS(options) {
var adminPath = this._adminPath = adminConfig.path || '/admin';
var adminRoot = this._adminRoot = adminConfig.root ||
path.join(__dirname, '../themes/okadmin/public');
+ var adminLibPath = this._adminLibPath = adminConfig.libPath ||
+ path.join(adminPath, "_lib");
+ var adminLibRoot = this._adminLibRoot = adminConfig.libRoot ||
+ path.join(__dirname, '../themes/okadmin/public');
var adminTemplateRoot = adminConfig.templateRoot ||
path.join(__dirname, '../themes/okadmin/templates');
@@ -137,6 +141,8 @@ function OKCMS(options) {
root: root,
adminRoot: adminRoot,
adminPath: adminPath,
+ adminLibRoot: adminLibRoot,
+ adminLibPath: adminLibPath,
services: services,
errorHandler: errorHandler
});