12 lines
287 B
JavaScript
12 lines
287 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function(server) {
|
||
|
// Install a `/` route that returns server status
|
||
|
var router = server.loopback.Router();
|
||
|
router.get('/status', server.loopback.status());
|
||
|
router.get(['/'],function(req,res){
|
||
|
res.send("Hello");
|
||
|
});
|
||
|
server.use(router);
|
||
|
};
|