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