| 1 | from fastapi import APIRouter |
| 2 | |
| 3 | from app.connectors.wazuh_indexer.routes.alerts import wazuh_indexer_alerts_router |
| 4 | from app.connectors.wazuh_indexer.routes.monitoring import wazuh_indexer_router |
| 5 | from app.connectors.wazuh_indexer.routes.snapshot_and_restore import ( |
| 6 | wazuh_indexer_snapshots_router, |
| 7 | ) |
| 8 | |
| 9 | # Instantiate the APIRouter |
| 10 | router = APIRouter() |
| 11 | |
| 12 | # Include the Wazuh Indexer related routes |
| 13 | router.include_router( |
| 14 | wazuh_indexer_alerts_router, |
| 15 | prefix="/alerts", |
| 16 | tags=["wazuh-indexer-alerts"], |
| 17 | ) |
| 18 | router.include_router( |
| 19 | wazuh_indexer_router, |
| 20 | prefix="/wazuh_indexer", |
| 21 | tags=["wazuh-indexer-monitoring"], |
| 22 | ) |
| 23 | router.include_router( |
| 24 | wazuh_indexer_snapshots_router, |
| 25 | prefix="/snapshots", |
| 26 | tags=["wazuh-indexer-snapshots"], |
| 27 | ) |