From 74c749554f46192b0d4424fe5371982d1e48f37c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 13 Apr 2015 12:38:53 -0400 Subject: put admin area on /admin --- Readme.md | 1 + app/index.js | 2 +- themes/okadmin/templates/partials/tail.liquid | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Readme.md b/Readme.md index a96860f..b9e5b2d 100644 --- a/Readme.md +++ b/Readme.md @@ -10,4 +10,5 @@ * node index Server will be running on http://lvh.me:1337/ +Admin area available on http://lvh.me:1337/admin/ diff --git a/app/index.js b/app/index.js index 708943c..719c424 100644 --- a/app/index.js +++ b/app/index.js @@ -32,7 +32,7 @@ function OKCMS(options) { var adminConfig = options.admin || {}; var adminRoot = this._adminRoot = adminConfig.root || path.join(__dirname, '../themes/okadmin/public'); - var adminPath = this._adminPath = '/_admin'; + var adminPath = this._adminPath = '/admin'; var templateRoot = options.templateRoot || 'templates'; var adminTemplateRoot = options.templateRoot || path.join(__dirname, '../themes/okadmin/templates'); diff --git a/themes/okadmin/templates/partials/tail.liquid b/themes/okadmin/templates/partials/tail.liquid index 88764a6..b3c575d 100644 --- a/themes/okadmin/templates/partials/tail.liquid +++ b/themes/okadmin/templates/partials/tail.liquid @@ -2,8 +2,8 @@ - - - - + + + + -- cgit v1.2.3-70-g09d2