Skip to content

Commit 02b4dd1

Browse files
author
Rafael
committed
backend before docker
1 parent 8e4901a commit 02b4dd1

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

app/note.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ def create_note(payload: schemas.NoteBaseSchema, db: Session = Depends(get_db)):
8484
raise HTTPException(status_code=500, detail=str(e))
8585

8686

87-
# @router.post('/', status_code=status.HTTP_201_CREATED)
88-
# def create_note(payload: schemas.NoteBaseSchema, db: Session = Depends(get_db)):
89-
# new_note = models.Note(**payload.dict())
90-
# db.add(new_note)
91-
# db.commit()
92-
# db.refresh(new_note)
93-
# return {"status": "success", "note": new_note}
94-
9587

9688
@router.patch('/{noteId}')
9789
def update_note(noteId: str, payload: schemas.NoteBaseSchema, db: Session = Depends(get_db)):

env_variables.PNG

11 KB
Loading

0 commit comments

Comments
 (0)