feat(chalice): changed share note to slack endpoint

This commit is contained in:
Taha Yassine Kraiem 2022-10-07 16:20:11 +02:00
parent e8a288ba8a
commit 766d76202d
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,