Changeset 464 for Dev/trunk/src/server/app.js
- Timestamp:
- 06/23/13 21:46:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/server/app.js
r463 r464 4 4 var fs = require("fs"); 5 5 var path = require("path"); 6 var proxy = require(" simple-http-proxy");6 var proxy = require("./simple-http-proxy"); 7 7 var _ = require("underscore"); 8 8 … … 58 58 // url to login (might work on others as well?) 59 59 // you should then have a session to work with 60 app.post('/api/login' , passport.authenticate('local'));60 app.post('/api/login'); 61 61 62 62 // forward to couch 63 app.use('/data/couch', p assport.authenticate('local'), proxy(settings.couchDbURL));63 app.use('/data/couch', proxy(settings.couchDbURL)); 64 64 65 65 return app;
Note: See TracChangeset
for help on using the changeset viewer.