summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2014-06-30 18:29:32 (UTC)
committer Michael Krelin <hacker@klever.net>2014-06-30 18:29:32 (UTC)
commit9b7511c6599e9991ef32742558243e56f65d5f73 (patch) (unidiff)
tree46e6863dd178944d2a7e8cd04bb7028d9f743cad
parent44963f7c48fa76b2bbf1cc8b63b84519c0cc4c6e (diff)
downloadclipperz-9b7511c6599e9991ef32742558243e56f65d5f73.zip
clipperz-9b7511c6599e9991ef32742558243e56f65d5f73.tar.gz
clipperz-9b7511c6599e9991ef32742558243e56f65d5f73.tar.bz2
path adjustments
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--backend/node/properties/node.properties.json4
-rw-r--r--backend/node/src/app.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/backend/node/properties/node.properties.json b/backend/node/properties/node.properties.json
index 6bb8860..e6f9e7e 100644
--- a/backend/node/properties/node.properties.json
+++ b/backend/node/properties/node.properties.json
@@ -1,5 +1,5 @@
1{ 1{
2 "request.path": "/json", 2 "request.path": "../json",
3 "dump.path": "../dump", 3 "dump.path": "/../dump",
4 "should.pay.toll": "false" 4 "should.pay.toll": "false"
5} 5}
diff --git a/backend/node/src/app.js b/backend/node/src/app.js
index ca05e6f..bbc62f8 100644
--- a/backend/node/src/app.js
+++ b/backend/node/src/app.js
@@ -27,25 +27,25 @@ var clipperz = CLIPPERZ({
27}); 27});
28 28
29 29
30var app = EXPRESS(); 30var app = EXPRESS();
31 31
32app.set('port', process.env.PORT || 3000); 32app.set('port', process.env.PORT || 3000);
33app.use(require('morgan')('dev')); 33app.use(require('morgan')('dev'));
34app.use(require('body-parser').urlencoded({extended:true})); 34app.use(require('body-parser').urlencoded({extended:true}));
35app.use(require('cookie-parser')('your secret here')); 35app.use(require('cookie-parser')('your secret here'));
36app.use(require('express-session')({secret:'99 little bugs in the code', key:'sid', store: clipperz.session_store(), resave: false, saveUninitialized: false })); 36app.use(require('express-session')({secret:'99 little bugs in the code', key:'sid', store: clipperz.session_store(), resave: false, saveUninitialized: false }));
37 37
38app.post('/json',clipperz.json); 38app.post('/json',clipperz.json);
39app.get('/beta/dump',clipperz.dump); 39app.get('/dump',clipperz.dump);
40 40
41app.use(EXPRESS.static(PATH.join(__dirname, 'htdocs/'))); 41app.use(EXPRESS.static(PATH.join(__dirname, 'htdocs/')));
42if ('development' == app.get('env')) { 42if ('development' == app.get('env')) {
43 app.use(require('express-error-with-sources')()); 43 app.use(require('express-error-with-sources')());
44} 44}
45 45
46 46
47 47
48 48
49HTTP.createServer(app).listen(app.get('port'), function(){ 49HTTP.createServer(app).listen(app.get('port'), function(){
50 LOGGER.info({port:app.get('port')},"Listener established"); 50 LOGGER.info({port:app.get('port')},"Listener established");
51}); 51});