Skip to content

Commit 36ccb85

Browse files
authored
Onboarded opensearch apis to use MDS client for Neo (#1313)
Signed-off-by: Amardeepsingh Siglani <[email protected]> cr: https://code.amazon.com/reviews/CR-234395069
1 parent 147e2e7 commit 36ccb85

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

server/routes/opensearch.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,29 @@ export default function (services, router, dataSourceEnabled) {
6262
router.get(
6363
{
6464
path: '/api/alerting/_plugins',
65-
validate: false,
65+
validate: {
66+
query: createValidateQuerySchema(dataSourceEnabled),
67+
},
6668
},
6769
opensearchService.getPlugins
6870
);
6971

7072
router.get(
7173
{
7274
path: '/api/alerting/_settings',
73-
validate: false,
75+
validate: {
76+
query: createValidateQuerySchema(dataSourceEnabled),
77+
},
7478
},
7579
opensearchService.getSettings
7680
);
7781

7882
router.get(
7983
{
8084
path: '/api/alerting/_health',
81-
validate: false,
85+
validate: {
86+
query: createValidateQuerySchema(dataSourceEnabled),
87+
},
8288
},
8389
opensearchService.getClusterHealth
8490
);

0 commit comments

Comments
 (0)