We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not sure if it's considered an issue but when require('express-expose') is after var app = require('express')(), there is an error:
require('express-expose')
var app = require('express')()
TypeError: Object function app(req, res){ app.handle(req, res); } has no method 'expose'
Code example that fails:
express = require('express') app = express() require('express-expose') app.expose
Code example that works:
express = require("express") require('express-expose') app = express() app.expose
It might strike as an odd use case but it happened while porting an app to express3.
The text was updated successfully, but these errors were encountered:
we should change it anyway, it should be require('express-expose')(app)
require('express-expose')(app)
Sorry, something went wrong.
That was the quick fix I used before understanding the ordering problem.. maybe it wasn't a total hack after all. Thanks
No branches or pull requests
Not sure if it's considered an issue but when
require('express-expose')
is aftervar app = require('express')()
, there is an error:TypeError: Object function app(req, res){ app.handle(req, res); } has no method 'expose'
Code example that fails:
Code example that works:
It might strike as an odd use case but it happened while porting an app to express3.
The text was updated successfully, but these errors were encountered: