diff --git a/api/routers/core_dynamic.py b/api/routers/core_dynamic.py index f8c602faf..8e127dc29 100644 --- a/api/routers/core_dynamic.py +++ b/api/routers/core_dynamic.py @@ -410,7 +410,7 @@ def delete_note(projectId: int, noteId: int, context: schemas.CurrentContext = D return data -@app.post('/{projectId}/notes/{noteId}/slack/{webhookId}', tags=["sessions", "notes"]) +@app.get('/{projectId}/notes/{noteId}/slack/{webhookId}', tags=["sessions", "notes"]) def share_note_to_slack(projectId: int, noteId: int, webhookId: int, context: schemas.CurrentContext = Depends(OR_context)): return sessions_notes.share_to_slack(tenant_id=context.tenant_id, project_id=projectId, user_id=context.user_id, diff --git a/ee/api/routers/core_dynamic.py b/ee/api/routers/core_dynamic.py index 9734a9e2c..facbaedd1 100644 --- a/ee/api/routers/core_dynamic.py +++ b/ee/api/routers/core_dynamic.py @@ -432,7 +432,7 @@ def delete_note(projectId: int, noteId: int, context: schemas.CurrentContext = D return data -@app.post('/{projectId}/notes/{noteId}/slack/{webhookId}', tags=["sessions", "notes"]) +@app.get('/{projectId}/notes/{noteId}/slack/{webhookId}', tags=["sessions", "notes"]) def share_note_to_slack(projectId: int, noteId: int, webhookId: int, context: schemas.CurrentContext = Depends(OR_context)): return sessions_notes.share_to_slack(tenant_id=context.tenant_id, project_id=projectId, user_id=context.user_id,