X-Git-Url: http://git.pjr.cc/?p=nodejsws.git;a=blobdiff_plain;f=examples%2Fsimple%2Fmyapp.js;h=dd24da3096f777ad3cf4ee336b13aa91e70c0ffc;hp=7eed9ea65578fa54c77d30ae5487bfa5cb7b0fc0;hb=d621aec05d8d430c199dfb72a547ae16dc8b59d4;hpb=33b282a980af1a756710987498cc9962b5ff117b diff --git a/examples/simple/myapp.js b/examples/simple/myapp.js index 7eed9ea..dd24da3 100644 --- a/examples/simple/myapp.js +++ b/examples/simple/myapp.js @@ -1,7 +1,17 @@ +// require the main njspurls modules var app = require("njspurls"); +// below we set a bunch of things globally for the app +// set the port to listen to app.setPort(8888); + +// location for loading "purls" app.setPurlPath("./purls"); + +// location for resources +app.setResPath("./res"); + +// purl to load for main page, i.e. / app.setDefaultMainPurl("main"); app.addMenu("name1", "/linkto1"); app.addMenu("name2", "/linkto2");