2016-11-07 09:06:28 +00:00
|
|
|
|
|
|
|
module.exports = function(server) {
|
|
|
|
// Install a `/` route that returns server status
|
|
|
|
var router = server.loopback.Router();
|
2016-11-08 08:07:39 +00:00
|
|
|
|
2016-11-07 09:06:28 +00:00
|
|
|
router.get('/status', server.loopback.status());
|
|
|
|
router.get(['/'],function(req,res){
|
2016-11-08 14:06:45 +00:00
|
|
|
res.render('index.ejs');
|
2016-11-07 09:06:28 +00:00
|
|
|
});
|
2016-11-08 08:07:39 +00:00
|
|
|
|
2016-11-07 09:06:28 +00:00
|
|
|
server.use(router);
|
|
|
|
};
|