From 73025e6d572b01ee3542faba1fdd26079b2b859b Mon Sep 17 00:00:00 2001 From: Ian Webster Date: Wed, 16 Apr 2014 14:00:09 -0700 Subject: [PATCH] add endpoint to check US providers --- app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.js b/app.js index 36591ce..8de731e 100644 --- a/app.js +++ b/app.js @@ -29,6 +29,10 @@ app.get('/', function(req, res) { }); }); +app.get('/providers/us', function(req, res) { + res.send(providers.us); +}); + app.post('/text', function(req, res) { var number = stripPhone(req.body.number); if (number.length < 9 || number.length > 10) {