I need to do this:
require('./config/enviroment.js')(app, express);
But i don’t know the way to do..
i tried:
require './config/routes.js'(app, routes) ->
And i get
require('./config/routes.js'(app, routes)(function() {}));
But i think that is not what i’m looking.
I tried this too
require './config/enviroment.js'(app, express)
But i get
require('./config/enviroment.js'(app, express));
There are several ways to call a function that is the return value of another function:
So in your specific case: