From 90ffab09bdfabf3462d1b47987cb191685710810 Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 20 Apr 2014 18:46:37 -0700 Subject: [PATCH] providers utility endpoint --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 8de731e..b66e7ef 100644 --- a/app.js +++ b/app.js @@ -22,15 +22,15 @@ app.use(express.bodyParser()); // App -/* Homepage */ app.get('/', function(req, res) { fs.readFile(__dirname + '/views/index.html', 'utf8', function(err, text){ res.send(text); }); }); -app.get('/providers/us', function(req, res) { - res.send(providers.us); +app.get('/providers/:region', function(req, res) { + // Utility function, just to check the providers currently loaded + res.send(providers[req.params.region]); }); app.post('/text', function(req, res) {