-
Notifications
You must be signed in to change notification settings - Fork 51
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
Mount Koa app from different Directory #13
Comments
I have the same problem |
var subapp1 = require('./subapp1')
var subapp2 = require('./subapp2')
app.use(mount('/subapp1', subapp1))
app.use(mount('/subapp2', subapp2)) your questions need more code because right now it's ambiguous |
@jonathanong according to your solution this is app1 but when in my server.js that is my startup app i call this
|
still need a test case. looks like you're not passing an app |
Ok. this is my App |
if i can't copy and paste it then it's not a test case |
Ok .
and this is
tnx |
you're not exporting the app. that's it. |
In
and this is the error :
i think it cant load koa |
OOPS . if find my mistake.
|
according to this stackoverflow question how to mount koa app from different directory
The text was updated successfully, but these errors were encountered: