Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/providers/:region route isn't working #54

Open
cooperra opened this issue Oct 10, 2015 · 0 comments
Open

/providers/:region route isn't working #54

cooperra opened this issue Oct 10, 2015 · 0 comments

Comments

@cooperra
Copy link

When I went to http://textbelt.com/providers/us, output was

ReferenceError: providers is not defined at /home/ian/textbelt/server/app.js:92:12 at callbacks (/home/ian/textbelt/node_modules/express/lib/router/index.js:164:37) at param (/home/ian/textbelt/node_modules/express/lib/router/index.js:138:11) at param (/home/ian/textbelt/node_modules/express/lib/router/index.js:135:11) at pass (/home/ian/textbelt/node_modules/express/lib/router/index.js:145:5) at Router._dispatch (/home/ian/textbelt/node_modules/express/lib/router/index.js:173:5) at Object.router (/home/ian/textbelt/node_modules/express/lib/router/index.js:33:10) at next (/home/ian/textbelt/node_modules/express/node_modules/connect/lib/proto.js:193:15) at _middleware (/home/ian/textbelt/node_modules/authbox/lib/middleware.js:134:5) at Object.middleware [as handle] (/home/ian/textbelt/node_modules/authbox/lib/middleware.js:76:3)

but the code suggests I should be able to see a list of the loaded providers.

textbelt/server/app.js

Lines 74 to 77 in b9fb645

app.get('/providers/:region', function(req, res) {
// Utility function, just to check the providers currently loaded
res.send(providers[req.params.region]);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant