-rw-r--r-- | backend/node/properties/node.properties.json | 4 | ||||
-rw-r--r-- | backend/node/src/app.js | 2 |
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 @@ { - "request.path": "/json", - "dump.path": "../dump", + "request.path": "../json", + "dump.path": "/../dump", "should.pay.toll": "false" } 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 @@ -15,37 +15,37 @@ var LOGGER = BUNYAN.createLogger({ var EXPRESS = require('express'); var HTTP = require('http'); var PATH = require('path'); var CLIPPERZ = require('./clipperz'); var CONF = require('./conf'); var clipperz = CLIPPERZ({ psql: CONF.psql||'postgresql:///clipperz', logger: LOGGER, dump_template: PATH.join(__dirname,'htdocs/beta/index.html') }); var app = EXPRESS(); app.set('port', process.env.PORT || 3000); app.use(require('morgan')('dev')); app.use(require('body-parser').urlencoded({extended:true})); app.use(require('cookie-parser')('your secret here')); app.use(require('express-session')({secret:'99 little bugs in the code', key:'sid', store: clipperz.session_store(), resave: false, saveUninitialized: false })); app.post('/json',clipperz.json); -app.get('/beta/dump',clipperz.dump); +app.get('/dump',clipperz.dump); app.use(EXPRESS.static(PATH.join(__dirname, 'htdocs/'))); if ('development' == app.get('env')) { app.use(require('express-error-with-sources')()); } HTTP.createServer(app).listen(app.get('port'), function(){ LOGGER.info({port:app.get('port')},"Listener established"); }); |