Skip to content

Commit

Permalink
remove endpoint (#3014)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx authored Oct 31, 2024
1 parent 787fdf2 commit add87fa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions backend/danswer/server/documents/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,6 @@ def get_cc_source_full_info(
]


@router.get("/credential/{id}")
def list_credentials_by_id(
user: User | None = Depends(current_user),
db_session: Session = Depends(get_session),
) -> list[CredentialSnapshot]:
credentials = fetch_credentials(db_session=db_session, user=user)
return [
CredentialSnapshot.from_credential_db_model(credential)
for credential in credentials
]


@router.delete("/admin/credential/{credential_id}")
def delete_credential_by_id_admin(
credential_id: int,
Expand Down

0 comments on commit add87fa

Please sign in to comment.