Fix rootHttpRouter service example

Signed-off-by: Horst Gutmann <horst.gutmann@grafana.com>
This commit is contained in:
Horst Gutmann
2024-03-27 09:23:47 +01:00
parent 34783125fd
commit 672ba0fe09
@@ -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);
},
});
},