mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
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:
parent
9311e12c87
commit
9fc5f6589b
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ async function discoverSlackChannelsAPI(connectorId: number): Promise<SlackChann
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
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',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue