Replace entry with artifact and add entity
This commit is contained in:
@@ -180,6 +180,19 @@ module.exports = function () {
|
||||
// }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
association: db.User.IndividualEntityUser,
|
||||
include: [
|
||||
{
|
||||
association: db.IndividualEntityUser.EntityUser,
|
||||
include: [
|
||||
{
|
||||
association: db.EntityUser.Entity
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
})
|
||||
@@ -195,7 +208,7 @@ module.exports = function () {
|
||||
|
||||
sessionStore.sync();
|
||||
|
||||
// TODO: Create a load router module...
|
||||
// TODO: check that user has an individualEntityUser....
|
||||
var router = require('./router/index.js')({
|
||||
app: app,
|
||||
express: express,
|
||||
@@ -204,6 +217,8 @@ module.exports = function () {
|
||||
});
|
||||
app.use('/', router);
|
||||
|
||||
|
||||
|
||||
// 404 pages...
|
||||
app.use((request, response, next) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user