Changeset 527 for Dev/trunk/src/server/api/responses.js
- Timestamp:
- 03/23/14 17:26:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/server/api/responses.js
r525 r527 16 16 return couch.get(url) 17 17 .handle({ 18 '-1': _.identity, 18 19 200: util.handleRowValues, 19 20 default: util.handleUnknownResponse … … 30 31 hr = util.getDocumentsOfType('Response'); 31 32 } 32 hr.handle(res.send.bind(res)); 33 hr.handle({'-1': util.handleException}) 34 .handle(res.send.bind(res)); 33 35 }); 34 36 app.get('/:id', … … 44 46 return util.postDocument('Response',doc); 45 47 }) 48 .handle({'-1': util.handleException}) 46 49 .handle(res.send.bind(res)); 47 50 }); … … 64 67 hr = util.putDocument(id,rev,'Response',doc); 65 68 } 66 hr.handle(res.send.bind(res)); 69 hr.handle({'-1': util.handleException}) 70 .handle(res.send.bind(res)); 67 71 }); 68 72 app.delete('/:id',
Note: See TracChangeset
for help on using the changeset viewer.