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