From 54c0bbef364774f8049004e1647a9f0e1d73fb62 Mon Sep 17 00:00:00 2001 From: Jonnie Spratley Date: Thu, 1 Jan 2015 14:05:07 -0800 Subject: [PATCH] updated server.js --- app/views/pages.html | 65 ++++---------------------------------------- server.js | 18 +++--------- 2 files changed, 10 insertions(+), 73 deletions(-) diff --git a/app/views/pages.html b/app/views/pages.html index dd68f58..5265096 100755 --- a/app/views/pages.html +++ b/app/views/pages.html @@ -53,65 +53,12 @@ -
- - - - - +
- - -
- - -
- - -
-
- - Permlink: http://{{App.baseurl}}/?page_id={{page.slug}} - -
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
- +
+
+ +
+
- - - -
- - diff --git a/server.js b/server.js index 2b1271d..67ea21f 100755 --- a/server.js +++ b/server.js @@ -4,18 +4,8 @@ */ var express = require('express'); var fs = require('fs'); -//var cmsRouter = require('./routes/cms-router.js'); +var cmsRouter = require('./routes/cms-router.js'); var app = express(); -//var config = JSON.parse(fs.readFileSync('./config/config.json')); -//var server = new cmsRouter.mount(config, app); -//console.log(server); - - -var Resource = require('./routes/generic.js'); - - - - -var r = Resource.init(); - -console.log(r.findAll('users')); +var config = JSON.parse(fs.readFileSync('./config/config.json')); +var server = new cmsRouter.mount(config, app); +console.log(server);