feat(chalice): changed share note to slack endpoint
This commit is contained in:
parent
e8a288ba8a
commit
766d76202d
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue