From 636866c735a1b480625ad38029e54ec932e28fb1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 6 Sep 2016 11:51:27 -0400 Subject: use /admin/_lib for libraries for custom cms --- app/index.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/index.js') 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 }); -- cgit v1.2.3-70-g09d2