From f1030d58a82527eea1e0add4ed5f78c83afb54a1 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Thu, 12 Aug 2010 11:57:34 -0600 Subject: [PATCH] Adjusted static paths and added directory listings --- lib/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index f3e8fc6..dff17de 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,5 +1,6 @@ var pinturaApp, settings = require("commonjs-utils/settings"), + Static = require("pintura/jsgi/static").Static, multiNode = require("multi-node/multi-node"); require.reloadable(function(){ @@ -15,9 +16,8 @@ var nodes = multiNode.listen({port: settings.port || 8080, nodes: settings.proce require("pintura/jsgi/cascade").Cascade([ // cascade from static to pintura REST handling // the main place for static files accessible from the web - require("pintura/jsgi/static").Static({urls:[""], root: "public", directoryListing: true}), - require("pintura/jsgi/static").Static({urls:["/explorer"], root: require("nodules").getCachePath("persevere-client/")}), - require("pintura/jsgi/static").Static({urls:["/js/dojo-persevere"],root: require("nodules").getCachePath("persevere-client/")}), + Static({urls:[""], root: "public", directoryListing: true}), + Static({urls:["/explorer"], root: require("nodules").getCachePath("persevere-client/") + "/explorer"}), // this will provide access to the server side JS libraries from the client require("transporter/jsgi/transporter").Transporter({ loader: require("nodules").forEngine("browser").useLocal().getModuleSource}),