Fix: Correct API path for Slack channel discovery

Updated the frontend API call to use the correct path `/api/v1/slack/:connectorId/discover-channels` instead of the previous incorrect path.

This change ensures the frontend aligns with the backend routing structure for fetching Slack channels where the bot is a member.

Addresses a 404 error you reported when attempting to discover Slack channels.
This commit is contained in:
google-labs-jules[bot] 2025-05-29 05:37:35 +00:00
parent 9311e12c87
commit 9fc5f6589b

View file

@ -267,7 +267,7 @@ async function discoverSlackChannelsAPI(connectorId: number): Promise<SlackChann
try {
const response = await fetch(
`${process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL}/api/search-source-connectors/slack/${connectorId}/discover-channels`,
`${process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL}/api/v1/slack/${connectorId}/discover-channels`,
{
method: 'GET',
headers: {