add endpoint to check US providers
This commit is contained in:
parent
c65892f459
commit
73025e6d57
4
app.js
4
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) {
|
app.post('/text', function(req, res) {
|
||||||
var number = stripPhone(req.body.number);
|
var number = stripPhone(req.body.number);
|
||||||
if (number.length < 9 || number.length > 10) {
|
if (number.length < 9 || number.length > 10) {
|
||||||
|
Loading…
Reference in New Issue
Block a user