Skip to content

Commit

Permalink
chore(readme): update
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Dec 31, 2018
1 parent 7cf1870 commit 5b205b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE.txt → LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2014-2018 Chris Brame
Copyright 2014-2019 Chris Brame

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
9 changes: 9 additions & 0 deletions src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,15 @@ function mainRoutes(router, middleware, controllers) {
res.send('OK');
});

var formidable = require('express-formidable');

router.post('/debug/sendgrid', formidable(), function(req, res) {
console.log(req.fields);
console.log('---------');
console.log(req.fields.to);
return res.send();
});

router.get('/debug/cache/refresh', function (req, res) {
var _ = require('lodash');

Expand Down

0 comments on commit 5b205b5

Please sign in to comment.