letter-opener-express
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -50,2 +50,8 @@ module.exports = letterOpenerExpress | ||
// Gets just the HTML for a message so that we can load that in via an iframe and not have the main page's | ||
// styling interfere with the emails | ||
, messageHtml: function(req, res, next) { | ||
res.send(req.message.payload.html) | ||
} | ||
, about: function(req, res) { | ||
@@ -151,2 +157,5 @@ var context = _.clone(locals) | ||
router.param('id', loadMessage) | ||
router.route('/message/:id/html') | ||
.get(findAllMessagesMiddleware, endpoints.messageHtml) | ||
router.route('/message/:id') | ||
@@ -153,0 +162,0 @@ .get(findAllMessagesMiddleware, endpoints.show) |
{ | ||
"name": "letter-opener-express", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "Bindings into letter-opener sufficient for an Express 4 application.", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
# node-letter-opener-express | ||
Bindings into letter-opener sufficient for an Express 4 application. | ||
[](http://badge.fury.io/js/letter-opener-express) | ||
## Installation | ||
```bash | ||
$ npm install letter-opener-express | ||
``` | ||
## Quick Start | ||
```javascript | ||
var letterOpener = require('letter-opener-express') | ||
var letterOpenerConfig = { | ||
app: app | ||
, storageDir: 'tmp' | ||
} | ||
letterOpener(letterOpenerConfig) | ||
``` | ||
## Contributors | ||
Author: [Ethan Garofolo](http://learnallthenodes.com) | ||
## License | ||
[MIT](LICENSE) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
39912
17
155
2
33