This commit is contained in:
John McLear 2015-06-25 11:49:29 +01:00
parent 96f60c972f
commit 96410df84c
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@ db['dbSettings'].cache = 0;
exports.registerRoute = function (hook_name, args, callback) { exports.registerRoute = function (hook_name, args, callback) {
// Catching (un)subscribe addresses // Catching (un)subscribe addresses
args.app.get(/\/p\/.*\/(un){0,1}subscribe=(.*)/, function(req, res) { args.app.get(/\/p\/.*\/(un){0,1}subscribe=(.*)/, function(req, res) {
console.warn("HERE");
var fullURL = req.protocol + "://" + req.get('host') + req.url; var fullURL = req.protocol + "://" + req.get('host') + req.url;
var path=req.url.split("/"); var path=req.url.split("/");
var padId=path[2]; var padId=path[2];

View file

@ -1,7 +1,7 @@
{ {
"name": "ep_email_notifications", "name": "ep_email_notifications",
"description": "Subscribe to a pad and receive an email when someone edits your pad", "description": "Subscribe to a pad and receive an email when someone edits your pad",
"version": "0.1.3", "version": "0.1.4",
"author": { "author": {
"name": "John Mclear", "name": "John Mclear",
"email": "john@mclear.co.uk", "email": "john@mclear.co.uk",