Fix rootHttpRouter service example
Signed-off-by: Horst Gutmann <horst.gutmann@grafana.com>
This commit is contained in:
@@ -27,11 +27,11 @@ createBackendPlugin({
|
||||
},
|
||||
async init({ rootHttpRouter }) {
|
||||
const router = Router();
|
||||
router.get('/health', (request, response) => {
|
||||
router.get('', (request, response) => {
|
||||
response.send('OK');
|
||||
});
|
||||
|
||||
rootHttpRouter.use(router);
|
||||
rootHttpRouter.use('/health', router);
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user