16 lines
344 B
JavaScript
16 lines
344 B
JavaScript
|
|
module.exports = function(server) {
|
|
server.enableAuth();
|
|
|
|
let router = server.loopback.Router();
|
|
router.get('/status', server.loopback.status());
|
|
server.use(router);
|
|
/*
|
|
let ds = server.dataSources.auth;
|
|
//ds.automigrate(function() {
|
|
ds.autoupdate(function() {
|
|
console.log('Tables migrated!');
|
|
});
|
|
*/
|
|
};
|