Skip to content

Commit

Permalink
Adjusted static paths and added directory listings
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Aug 12, 2010
1 parent f1437db commit f1030d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 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(){
Expand All @@ -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}),
Expand Down

0 comments on commit f1030d5

Please sign in to comment.