At the moment, I'm using a variable called 'config.prefix' in my app.get:
app.get(config.prefix + "/stats", function(req, res) {}
I would like to be able to set config.prefix to an array (or do it a totally different way) that I can add multiple prefixes too. Is this possible? Or would I have to hard code every app.get call for every prefix I want?
Thanks, Nevexo.
via Nevexo
No comments:
Post a Comment