salix/services/client/server/boot/root.js

16 lines
344 B
JavaScript
Raw Normal View History

2016-11-09 12:12:59 +00:00
module.exports = function(server) {
2017-05-17 19:23:47 +00:00
server.enableAuth();
let router = server.loopback.Router();
2017-03-07 16:11:56 +00:00
router.get('/status', server.loopback.status());
server.use(router);
/*
let ds = server.dataSources.auth;
//ds.automigrate(function() {
ds.autoupdate(function() {
console.log('Tables migrated!');
});
*/
2016-11-09 12:12:59 +00:00
};