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

Help me "not access because it does not exist" #44

Open
acma3978 opened this issue Jul 27, 2018 · 0 comments
Open

Help me "not access because it does not exist" #44

acma3978 opened this issue Jul 27, 2018 · 0 comments

Comments

@acma3978
Copy link

acma3978 commented Jul 27, 2018

folder: models/user.js
controllers/user.js

app.js

var express = require('express'), load = require('express-load');
var app = express();

load('models')
  .then('controllers')
  .into(app);

but

models/user.js
module.exports = function(app) {
console.log(app.controllers); // not work?
}

Can not access because it does not exist

@acma3978 acma3978 changed the title Help me Help me "not access because it does not exist" Jul 27, 2018
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